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.

19 lines
591 B

  1. kind: ConfigMap
  2. apiVersion: v1
  3. metadata:
  4. name: calico-config
  5. namespace: {{ system_namespace }}
  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. {%- else %}
  14. cluster_type: "kubespray,bgp"
  15. {% endif %}
  16. calico_backend: "bird"
  17. {%- if inventory_hostname in groups['k8s-cluster'] and peer_with_router|default(false) %}
  18. as: "{{ local_as }}"
  19. {% endif -%}