kubespray/roles/kubernetes-apps/network_plugin/flannel/tasks/main.yml

15 lines
524 B
YAML

---
- name: Flannel | Start Resources
kube:
namespace: "kube-system"
kubectl: "{{bin_dir}}/kubectl"
filename: "{{ flannel_node_manifests.results | selectattr('skipped', 'undefined') | map(attribute='item') | map(attribute='file') | map('regex_replace', '^(.*)$', kube_config_dir+'/\\1') | list }}"
state: "latest"
when: inventory_hostname == groups['kube-master'][0]
- name: Flannel | Wait for flannel subnet.env file presence
wait_for:
path: /run/flannel/subnet.env
delay: 5
timeout: 600