--- kind: ConfigMap apiVersion: v1 metadata: name: canal-config namespace: kube-system data: # Configure this with the location of your etcd cluster. etcd_endpoints: "http://10.3.0.136:6666" # The interface used by Canal for host <-> host communication. # If left blank, then the interface is chosen using the node's # default route. canal_iface: "" # Whether or not to masquerade traffic to destinations not within # the pod network. masquerade: "true" # The CNI network configuration to install on each node. The special # values in this config will be automatically populated. cni_network_config: |- { "name": "canal", "type": "flannel", "delegate": { "type": "calico", "etcd_endpoints": "__ETCD_ENDPOINTS__", "log_level": "info", "policy": { "type": "k8s", "k8s_api_root": "https://__KUBERNETES_SERVICE_HOST__:__KUBERNETES_SERVICE_PORT__", "k8s_auth_token": "__SERVICEACCOUNT_TOKEN__" }, "kubernetes": { "kubeconfig": "/etc/cni/net.d/__KUBECONFIG_FILENAME__" } } }