2016-10-10 14:09:50 +00:00
|
|
|
- name: Write calico-policy-controller yaml
|
|
|
|
template: src=calico-policy-controller.yml.j2 dest=/etc/kubernetes/calico-policy-controller.yml
|
|
|
|
when: inventory_hostname == groups['kube-master'][0]
|
|
|
|
|
|
|
|
|
|
|
|
- name: Start of Calico policy controller
|
|
|
|
kube:
|
2016-11-08 11:20:55 +00:00
|
|
|
name: "calico-policy-controller"
|
2016-10-10 14:09:50 +00:00
|
|
|
kubectl: "{{bin_dir}}/kubectl"
|
2016-11-08 11:20:55 +00:00
|
|
|
filename: "/etc/kubernetes/calico-policy-controller.yml"
|
|
|
|
namespace: "kube-system"
|
|
|
|
resource: "rs"
|
2016-10-10 14:09:50 +00:00
|
|
|
when: inventory_hostname == groups['kube-master'][0]
|