2016-12-30 20:47:12 +08:00
|
|
|
---
|
|
|
|
- set_fact:
|
|
|
|
calico_cert_dir: "{{ canal_cert_dir }}"
|
|
|
|
when: kube_network_plugin == 'canal'
|
|
|
|
tags: facts
|
|
|
|
|
2016-10-10 22:09:50 +08:00
|
|
|
- name: Write calico-policy-controller yaml
|
2016-09-30 23:23:47 +08:00
|
|
|
template: src=calico-policy-controller.yml.j2 dest={{kube_config_dir}}/calico-policy-controller.yml
|
2016-10-10 22:09:50 +08:00
|
|
|
when: inventory_hostname == groups['kube-master'][0]
|
|
|
|
|
|
|
|
- name: Start of Calico policy controller
|
|
|
|
kube:
|
2016-11-08 19:20:55 +08:00
|
|
|
name: "calico-policy-controller"
|
2016-10-10 22:09:50 +08:00
|
|
|
kubectl: "{{bin_dir}}/kubectl"
|
2016-09-30 23:23:47 +08:00
|
|
|
filename: "{{kube_config_dir}}/calico-policy-controller.yml"
|
2016-12-13 18:43:06 +08:00
|
|
|
namespace: "{{system_namespace}}"
|
2016-11-08 19:20:55 +08:00
|
|
|
resource: "rs"
|
2016-10-10 22:09:50 +08:00
|
|
|
when: inventory_hostname == groups['kube-master'][0]
|