Update 'k8s/initialize.yml'

master
alecsandru 9 months ago
parent 50a496e9ce
commit f56e23b95c
  1. 12
      k8s/initialize.yml

@ -1,10 +1,14 @@
--- ---
- name: Initialize the controlplane - name: Initialize the controlplane
hosts: masters hosts: root_master
become: yes become: yes
become_method: sudo become_method: sudo
become_user: root become_user: root
tasks: tasks:
- name: Reboot machine to finaliza presetup - name: Initialize the control plane
reboot: shell: kubeadm init --pod-network-cidr={{ POD_NETWORK_CIDR }} --control-plane-endpoint "{{ APISERVER_VIP}}:{{ APISERVER_PORT }}" --upload-certs >> /etc/kubernetes/setup.out
reboot_timeout: 3600 args: chdir $HOME
creates: /etc/kubernetes/setup.out
# - name: Reboot machine to finaliza presetup
# reboot:
# reboot_timeout: 3600
Loading…
Cancel
Save