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
tu1h 2022-12-27 16:53:28 +08:00 committed by GitHub
parent e90f32bdee
commit 791064a3d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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