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.

26 lines
724 B

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