2016-01-30 15:04:47 +00:00
|
|
|
{
|
|
|
|
"name": "calico-k8s-network",
|
2016-12-07 11:13:12 +00:00
|
|
|
{% if not legacy_calicoctl %}
|
2016-12-06 12:56:34 +00:00
|
|
|
"hostname": "{{ inventory_hostname }}",
|
2016-12-07 11:13:12 +00:00
|
|
|
{% endif %}
|
2016-01-30 15:04:47 +00:00
|
|
|
"type": "calico",
|
2016-11-25 15:58:43 +00:00
|
|
|
"etcd_endpoints": "{{ network_plugin_etcd_access_endpoint }}",
|
|
|
|
"etcd_cert_file": "{{ network_plugin_etcd_cert_dir_real }}/node.pem",
|
|
|
|
"etcd_key_file": "{{ network_plugin_etcd_cert_dir_real }}/node-key.pem",
|
|
|
|
"etcd_ca_cert_file": "{{ network_plugin_etcd_cert_dir_real }}/ca.pem",
|
2016-01-30 15:04:47 +00:00
|
|
|
"log_level": "info",
|
|
|
|
"ipam": {
|
|
|
|
"type": "calico-ipam"
|
2016-10-06 10:06:19 +00:00
|
|
|
},
|
2016-10-10 14:09:50 +00:00
|
|
|
{% if enable_network_policy is defined and enable_network_policy == True %}
|
|
|
|
"policy": {
|
|
|
|
"type": "k8s"
|
|
|
|
},
|
2016-11-14 07:48:28 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if calico_mtu is defined and calico_mtu is number %}
|
|
|
|
"mtu": {{ calico_mtu }},
|
2016-10-10 14:09:50 +00:00
|
|
|
{% endif %}
|
2016-10-06 10:06:19 +00:00
|
|
|
"kubernetes": {
|
|
|
|
"kubeconfig": "{{ kube_config_dir }}/node-kubeconfig.yaml"
|
2016-01-30 15:04:47 +00:00
|
|
|
}
|
|
|
|
}
|