# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap
apiVersion: v1
metadata:
  name: calico-config
  namespace: kube-system
data:
  # Configure this with the location of your etcd cluster.
  etcd_endpoints: "{{ etcd_endpoints }}"

  # If you're using TLS enabled etcd uncomment the following.
  # You must also populate the Secret below with these files.
  etcd_ca: "/calico-secrets/etcd-ca"
  etcd_cert: "/calico-secrets/etcd-cert"
  etcd_key: "/calico-secrets/etcd-key"
  # Typha is disabled.
  typha_service_name: "none"
  # Configure the Tigera Secure EE backend to use.
  calico_backend: "bird"

  # Configure the MTU to use
  veth_mtu: "1440"

  # The CNI network configuration to install on each node.  The special
  # values in this config will be automatically populated.
  #cni_network_config: |-
  #  {
  #    "name": "k8s-pod-network",
  #    "cniVersion": "0.3.0",
  #    "plugins": [
  #      {
  #        "type": "calico",
  #        "log_level": "info",
  #        "etcd_endpoints": "__ETCD_ENDPOINTS__",
  #        "etcd_key_file": "__ETCD_KEY_FILE__",
  #        "etcd_cert_file": "__ETCD_CERT_FILE__",
  #        "etcd_ca_cert_file": "__ETCD_CA_CERT_FILE__",
  #        "mtu": __CNI_MTU__,
  #        "ipam": {
  #            "type": "calico-ipam"
  #        },
  #        "policy": {
  #            "type": "k8s"
  #        },
  #        "kubernetes": {
  #            "kubeconfig": "__KUBECONFIG_FILEPATH__"
  #        }
  #      },
  #      {
  #        "type": "portmap",
  #        "snat": true,
  #        "capabilities": {"portMappings": true}
  #      }
  #    ]
  #  }
