You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
660 B

  1. - set_fact:
  2. calico_cert_dir: "{{ canal_cert_dir }}"
  3. when: kube_network_plugin == 'canal'
  4. tags: [facts, canal]
  5. - name: Write calico-policy-controller yaml
  6. template:
  7. src: calico-policy-controller.yml.j2
  8. dest: "{{kube_config_dir}}/calico-policy-controller.yml"
  9. when: inventory_hostname == groups['kube-master'][0]
  10. tags: canal
  11. - name: Start of Calico policy controller
  12. kube:
  13. name: "calico-policy-controller"
  14. kubectl: "{{bin_dir}}/kubectl"
  15. filename: "{{kube_config_dir}}/calico-policy-controller.yml"
  16. namespace: "{{system_namespace}}"
  17. resource: "rs"
  18. when: inventory_hostname == groups['kube-master'][0]
  19. tags: canal