Allow custom timeout for kubeadm init (#9617)
Signed-off-by: tu1h <lihai.tu@daocloud.io> Signed-off-by: tu1h <lihai.tu@daocloud.io>pull/9618/head
parent
e90f32bdee
commit
791064a3d9
|
@ -167,7 +167,7 @@
|
|||
|
||||
- name: kubeadm | Initialize first master
|
||||
command: >-
|
||||
timeout -k 300s 300s
|
||||
timeout -k {{ kubeadm_init_timeout }} {{ kubeadm_init_timeout }}
|
||||
{{ bin_dir }}/kubeadm init
|
||||
--config={{ kube_config_dir }}/kubeadm-config.yaml
|
||||
--ignore-preflight-errors=all
|
||||
|
|
|
@ -23,6 +23,9 @@ kube_version_min_required: v1.23.0
|
|||
## Kube Proxy mode One of ['iptables','ipvs']
|
||||
kube_proxy_mode: ipvs
|
||||
|
||||
## The timeout for init first control-plane
|
||||
kubeadm_init_timeout: 300s
|
||||
|
||||
## List of kubeadm init phases that should be skipped during control plane setup
|
||||
## By default 'addon/coredns' is skipped
|
||||
## 'addon/kube-proxy' gets skipped for some network plugins
|
||||
|
|
Loading…
Reference in New Issue