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.

24 lines
679 B

  1. {
  2. "name": "calico-k8s-network",
  3. "hostname": "{{ inventory_hostname }}",
  4. "type": "calico",
  5. "etcd_endpoints": "{{ etcd_access_endpoint }}",
  6. "etcd_cert_file": "{{ etcd_cert_dir }}/node.pem",
  7. "etcd_key_file": "{{ etcd_cert_dir }}/node-key.pem",
  8. "etcd_ca_cert_file": "{{ etcd_cert_dir }}/ca.pem",
  9. "log_level": "info",
  10. "ipam": {
  11. "type": "calico-ipam"
  12. },
  13. {% if enable_network_policy is defined and enable_network_policy == True %}
  14. "policy": {
  15. "type": "k8s"
  16. },
  17. {% endif %}
  18. {% if calico_mtu is defined and calico_mtu is number %}
  19. "mtu": {{ calico_mtu }},
  20. {% endif %}
  21. "kubernetes": {
  22. "kubeconfig": "{{ kube_config_dir }}/node-kubeconfig.yaml"
  23. }
  24. }