fix start CoreDNS when init secondary master (#4867)
This commit is contained in:
parent
9b2d176617
commit
a3a7fe7c8e
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@
|
||||||
when: inventory_hostname != groups['kube-master']|first
|
when: inventory_hostname != groups['kube-master']|first
|
||||||
|
|
||||||
- name: kubeadm | Init other uninitialized masters
|
- name: kubeadm | Init other uninitialized masters
|
||||||
command: timeout -k 600s 600s {{ bin_dir }}/kubeadm init --config={{ kube_config_dir }}/kubeadm-config.yaml --ignore-preflight-errors=all
|
command: timeout -k 600s 600s {{ bin_dir }}/kubeadm init --config={{ kube_config_dir }}/kubeadm-config.yaml --ignore-preflight-errors=all --skip-phases=addon/coredns
|
||||||
register: kubeadm_init
|
register: kubeadm_init
|
||||||
retries: 10
|
retries: 10
|
||||||
until: kubeadm_init is succeeded or "field is immutable" in kubeadm_init.stderr
|
until: kubeadm_init is succeeded or "field is immutable" in kubeadm_init.stderr
|
||||||
|
|
Loading…
Reference in a new issue