Enable nodes to run calicoctl for calico kdd mode (#4956)

* Enable nodes to run calicoctl

per-node tasks require waiting for calico-node to be applied

Change-Id: Ibe1076b7334a2da0332f2dd766fde0c3f172d1f2

* cleanup tasks that should run on master

Change-Id: I43a837879ef41596f14657ecd7f813899b6865ae

* Switch run_once calico logic to just run on first master

Change-Id: I6893711e354f63c5e1eaf6ac2e23d9a6347a555d
This commit is contained in:
Matthew Mosesohn
2019-07-15 11:59:06 +03:00
committed by Kubernetes Prow Robot
parent e0410661fa
commit fd9bbcb157
4 changed files with 109 additions and 106 deletions

View File

@@ -3,11 +3,11 @@
- import_tasks: pre.yml
- import_tasks: upgrade.yml
- include_tasks: upgrade.yml
when:
- calico_upgrade_enabled
- calico_upgrade_needed
- inventory_hostname in groups['kube-master']
run_once: yes
delegate_to: "{{ groups['kube-master'][0] }}"
- include_tasks: install.yml