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.

20 lines
622 B

  1. kind: ConfigMap
  2. apiVersion: v1
  3. metadata:
  4. name: calico-config
  5. namespace: kube-system
  6. data:
  7. etcd_endpoints: "{{ etcd_access_addresses }}"
  8. etcd_ca: "/calico-secrets/ca_cert.crt"
  9. etcd_cert: "/calico-secrets/cert.crt"
  10. etcd_key: "/calico-secrets/key.pem"
  11. {% if calico_network_backend is defined and calico_network_backend == 'none' %}
  12. cluster_type: "kubespray"
  13. calico_backend: "none"
  14. {% else %}
  15. cluster_type: "kubespray,bgp"
  16. calico_backend: "bird"
  17. {% endif %}
  18. {% if inventory_hostname in groups['k8s-cluster'] and peer_with_router|default(false) %}
  19. as: "{{ local_as|default(global_as_num) }}"
  20. {% endif -%}