Fix idempotency of calico-policy-controller rs

We need to specify kube resource type and name in order to avoid
playbook errors related to k8s resource duplication.
This commit is contained in:
Aleksandr Didenko 2016-11-08 12:20:55 +01:00
parent c857cf75dd
commit 90bae73e36

View file

@ -5,6 +5,9 @@
- name: Start of Calico policy controller - name: Start of Calico policy controller
kube: kube:
name: "calico-policy-controller"
kubectl: "{{bin_dir}}/kubectl" kubectl: "{{bin_dir}}/kubectl"
filename: /etc/kubernetes/calico-policy-controller.yml filename: "/etc/kubernetes/calico-policy-controller.yml"
namespace: "kube-system"
resource: "rs"
when: inventory_hostname == groups['kube-master'][0] when: inventory_hostname == groups['kube-master'][0]