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.

27 lines
949 B

  1. kind: ConfigMap
  2. apiVersion: v1
  3. metadata:
  4. name: calico-config
  5. namespace: kube-system
  6. data:
  7. {% if calico_datastore == "etcd" %}
  8. etcd_endpoints: "{{ etcd_access_addresses }}"
  9. etcd_ca: "/calico-secrets/ca_cert.crt"
  10. etcd_cert: "/calico-secrets/cert.crt"
  11. etcd_key: "/calico-secrets/key.pem"
  12. {% elif calico_datastore == "kdd" and typha_enabled %}
  13. # To enable Typha, set this to "calico-typha" *and* set a non-zero value for Typha replicas
  14. # below. We recommend using Typha if you have more than 50 nodes. Above 100 nodes it is
  15. # essential.
  16. typha_service_name: "calico-typha"
  17. {% endif %}
  18. {% if calico_network_backend is defined %}
  19. cluster_type: "kubespray"
  20. calico_backend: "{{ calico_network_backend }}"
  21. {% else %}
  22. cluster_type: "kubespray,bgp"
  23. calico_backend: "bird"
  24. {% endif %}
  25. {% if inventory_hostname in groups['k8s-cluster'] and peer_with_router|default(false) %}
  26. as: "{{ local_as|default(global_as_num) }}"
  27. {% endif -%}