Browse Source
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
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
1 deletions
-
roles/kubernetes/control-plane/tasks/kubeadm-setup.yml
-
roles/kubespray-defaults/defaults/main.yaml
|
|
@ -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 |
|
|
|