34 lines
781 B
Plaintext
34 lines
781 B
Plaintext
{
|
|
"name": "calico-k8s-network",
|
|
"cniVersion": "0.3.1",
|
|
"plugins": [
|
|
{
|
|
"type": "calico",
|
|
"etcd_endpoints": "{{ connection_string }}",
|
|
"etcd_key_file": "{{ etcd_key_path }}",
|
|
"etcd_cert_file": "{{ etcd_cert_path }}",
|
|
"etcd_ca_cert_file": "{{ etcd_ca_path }}",
|
|
"log_level": "info",
|
|
{% if mtu -%}
|
|
"mtu": {{ mtu }},
|
|
{%- endif %}
|
|
"ipam": {
|
|
"type": "calico-ipam",
|
|
"assign_ipv4": "{{ assign_ipv4 }}",
|
|
"assign_ipv6": "{{ assign_ipv6 }}"
|
|
},
|
|
"policy": {
|
|
"type": "k8s"
|
|
},
|
|
"kubernetes": {
|
|
"kubeconfig": "{{ kubeconfig_path }}"
|
|
}
|
|
},
|
|
{
|
|
"type": "portmap",
|
|
"capabilities": {"portMappings": true},
|
|
"snat": true
|
|
}
|
|
]
|
|
}
|