2017-10-16 14:11:38 +08:00
|
|
|
{
|
|
|
|
"name": "cni0",
|
|
|
|
"cniVersion":"0.3.1",
|
|
|
|
"plugins":[
|
|
|
|
{
|
|
|
|
"type": "flannel",
|
|
|
|
"delegate": {
|
|
|
|
"type": "calico",
|
2019-04-09 17:45:07 +08:00
|
|
|
"include_default_routes": true,
|
2017-10-16 14:11:38 +08:00
|
|
|
"etcd_endpoints": "{{ etcd_access_addresses }}",
|
2017-11-07 22:06:16 +08:00
|
|
|
"etcd_key_file": "{{ canal_cert_dir }}/key.pem",
|
|
|
|
"etcd_cert_file": "{{ canal_cert_dir }}/cert.crt",
|
|
|
|
"etcd_ca_cert_file": "{{ canal_cert_dir }}/ca_cert.crt",
|
2017-10-16 14:11:38 +08:00
|
|
|
"log_level": "info",
|
2020-09-10 18:45:46 +08:00
|
|
|
"log_file_path": "/var/log/calico/cni/cni.log",
|
2017-10-16 14:11:38 +08:00
|
|
|
"policy": {
|
|
|
|
"type": "k8s"
|
|
|
|
},
|
|
|
|
"kubernetes": {
|
2019-01-29 03:03:49 +08:00
|
|
|
"kubeconfig": "{% if calico_version is version('v3.3.0', '>=') %}__KUBECONFIG_FILEPATH__{% else %}{{ kube_config_dir }}/node-kubeconfig.yaml{% endif %}"
|
2017-10-16 14:11:38 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type":"portmap",
|
|
|
|
"capabilities":{
|
|
|
|
"portMappings":true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|