2017-10-16 06:11:38 +00:00
|
|
|
{
|
2022-07-22 13:28:07 +00:00
|
|
|
"name": "canal",
|
|
|
|
"cniVersion": "0.3.1",
|
|
|
|
"plugins": [
|
|
|
|
{
|
|
|
|
"type": "flannel",
|
|
|
|
"delegate": {
|
|
|
|
"type": "calico",
|
|
|
|
"include_default_routes": true,
|
|
|
|
"etcd_endpoints": "__ETCD_ENDPOINTS__",
|
|
|
|
"etcd_key_file": "__ETCD_KEY_FILE__",
|
|
|
|
"etcd_cert_file": "__ETCD_CERT_FILE__",
|
|
|
|
"etcd_ca_cert_file": "__ETCD_CA_CERT_FILE__",
|
|
|
|
"log_level": "info",
|
2022-06-07 16:22:56 +00:00
|
|
|
{% if calico_cni_log_file_path %}
|
2022-07-22 13:28:07 +00:00
|
|
|
"log_file_path": "{{ calico_cni_log_file_path }}",
|
2022-06-07 16:22:56 +00:00
|
|
|
{% endif %}
|
2022-07-22 13:28:07 +00:00
|
|
|
"policy": {
|
|
|
|
"type": "k8s",
|
|
|
|
"k8s_api_root": "https://__KUBERNETES_SERVICE_HOST__:__KUBERNETES_SERVICE_PORT__",
|
|
|
|
"k8s_auth_token": "__SERVICEACCOUNT_TOKEN__"
|
|
|
|
},
|
|
|
|
"kubernetes": {
|
|
|
|
"kubeconfig": "__KUBECONFIG_FILEPATH__"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "portmap",
|
|
|
|
"capabilities": {"portMappings": true},
|
|
|
|
"snat": true
|
|
|
|
}
|
|
|
|
]
|
2017-10-16 06:11:38 +00:00
|
|
|
}
|