Browse Source

add calico kubeconfig wait timeout (#9994)

Signed-off-by: tu1h <lihai.tu@daocloud.io>
pull/9999/head
Louis Tu 2 years ago
committed by GitHub
parent
commit
c7072b48dc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions
  1. 3
      roles/network_plugin/calico/defaults/main.yml
  2. 1
      roles/network_plugin/calico/tasks/install.yml

3
roles/network_plugin/calico/defaults/main.yml

@ -166,3 +166,6 @@ calico_apiserver_enabled: false
# Calico feature detect override # Calico feature detect override
calico_feature_detect_override: "" calico_feature_detect_override: ""
# Calico kubeconfig wait timeout in seconds
calico_kubeconfig_wait_timeout: 300

1
roles/network_plugin/calico/tasks/install.yml

@ -440,6 +440,7 @@
- name: Wait for calico kubeconfig to be created - name: Wait for calico kubeconfig to be created
wait_for: wait_for:
path: /etc/cni/net.d/calico-kubeconfig path: /etc/cni/net.d/calico-kubeconfig
timeout: "{{ calico_kubeconfig_wait_timeout }}"
when: when:
- inventory_hostname not in groups['kube_control_plane'] - inventory_hostname not in groups['kube_control_plane']
- calico_datastore == "kdd" - calico_datastore == "kdd"

Loading…
Cancel
Save