Update 'k8s/initialize.yml'
This commit is contained in:
@@ -35,7 +35,16 @@
|
|||||||
- name: Show command
|
- name: Show command
|
||||||
debug:
|
debug:
|
||||||
msg: "{{ hostvars['K8S_CP_JOIN_DH']['token'] }}"
|
msg: "{{ hostvars['K8S_CP_JOIN_DH']['token'] }}"
|
||||||
|
- name: Join k8s masters to the cluster
|
||||||
|
hosts: masters
|
||||||
|
become: yes
|
||||||
|
become_method: sudo
|
||||||
|
become_user: root
|
||||||
|
tasks:
|
||||||
|
- name: Execute image pull
|
||||||
|
shell: kubeadm config images pull
|
||||||
|
- name: Join the clusters
|
||||||
|
shell: {{ hostvars['K8S_CP_JOIN_DH']['token'] }}
|
||||||
# - name: Reboot machine to finaliza presetup
|
# - name: Reboot machine to finaliza presetup
|
||||||
# reboot:
|
# reboot:
|
||||||
# reboot_timeout: 3600
|
# reboot_timeout: 3600
|
Reference in New Issue
Block a user