Update 'k8s/initialize.yml'

master
alecsandru 9 months ago
parent 8e54a850b3
commit 1b22316ae2
  1. 11
      k8s/initialize.yml

@ -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
Loading…
Cancel
Save