c12s-kubespray/roles/kubernetes-apps/network_plugin/calico/tasks/main.yml
2020-07-28 01:39:08 -07:00

7 lines
323 B
YAML

---
- name: "calico upgrade complete"
command: "{{ bin_dir }}/calico-upgrade complete --no-prompts --apiconfigv1 /etc/calico/etcdv2.yml --apiconfigv3 /etc/calico/etcdv3.yml"
when:
- inventory_hostname == groups['kube-master'][0]
- calico_upgrade_enabled|default(True)
- calico_upgrade_needed|default(False)