2017-09-04 08:29:51 +00:00
|
|
|
kind: ConfigMap
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: calico-config
|
2018-03-30 11:29:13 +00:00
|
|
|
namespace: kube-system
|
2017-09-04 08:29:51 +00:00
|
|
|
data:
|
2017-10-04 12:27:55 +00:00
|
|
|
etcd_endpoints: "{{ etcd_access_addresses }}"
|
2017-09-04 08:29:51 +00:00
|
|
|
etcd_ca: "/calico-secrets/ca_cert.crt"
|
|
|
|
etcd_cert: "/calico-secrets/cert.crt"
|
|
|
|
etcd_key: "/calico-secrets/key.pem"
|
|
|
|
{% if calico_network_backend is defined and calico_network_backend == 'none' %}
|
|
|
|
cluster_type: "kubespray"
|
|
|
|
{%- else %}
|
|
|
|
cluster_type: "kubespray,bgp"
|
|
|
|
{% endif %}
|
|
|
|
calico_backend: "bird"
|
2018-02-06 00:38:05 +00:00
|
|
|
{% if inventory_hostname in groups['k8s-cluster'] and peer_with_router|default(false) %}
|
|
|
|
as: "{{ local_as|default(global_as_num) }}"
|
|
|
|
{% endif -%}
|