forked from hitachienergy/epiphany
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
K8s improvements (hitachienergy#2918)
- Loading branch information
Showing
10 changed files
with
189 additions
and
138 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
ansible/playbooks/roles/kubernetes_common/tasks/save-in-cluster-config.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
- name: Assert that dest_file variable is defined | ||
assert: | ||
that: | ||
- dest_file is defined | ||
fail_msg: Variable 'dest_file' must be defined | ||
|
||
- name: Collect kubeadm-config | ||
command: |- | ||
kubectl get configmap kubeadm-config \ | ||
--namespace kube-system \ | ||
--output jsonpath={{ jsonpath }} | ||
vars: | ||
jsonpath: >- | ||
'{.data.ClusterConfiguration}' | ||
register: kubeadm_config | ||
changed_when: false | ||
|
||
- name: Create {{ dest_file }} | ||
copy: | ||
dest: "{{ dest_file }}" | ||
mode: u=rw,go= | ||
content: >- | ||
{{ kubeadm_config.stdout }} |
25 changes: 0 additions & 25 deletions
25
ansible/playbooks/roles/kubernetes_master/tasks/apiserver-certificates.yml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.