2016-01-30 23:04:47 +08:00
|
|
|
{
|
|
|
|
"name": "calico-k8s-network",
|
2016-12-07 19:13:12 +08:00
|
|
|
{% if not legacy_calicoctl %}
|
2017-01-25 18:47:42 +08:00
|
|
|
"hostname": "{{ ansible_hostname }}",
|
2016-12-07 19:13:12 +08:00
|
|
|
{% endif %}
|
2016-01-30 23:04:47 +08:00
|
|
|
"type": "calico",
|
2016-11-09 18:31:12 +08:00
|
|
|
"etcd_endpoints": "{{ etcd_access_endpoint }}",
|
2016-12-13 17:03:35 +08:00
|
|
|
"etcd_cert_file": "{{ etcd_cert_dir }}/node-{{ inventory_hostname }}.pem",
|
|
|
|
"etcd_key_file": "{{ etcd_cert_dir }}/node-{{ inventory_hostname }}-key.pem",
|
2016-11-09 18:44:41 +08:00
|
|
|
"etcd_ca_cert_file": "{{ etcd_cert_dir }}/ca.pem",
|
2016-01-30 23:04:47 +08:00
|
|
|
"log_level": "info",
|
|
|
|
"ipam": {
|
|
|
|
"type": "calico-ipam"
|
2016-10-06 18:06:19 +08:00
|
|
|
},
|
2017-03-13 23:04:31 +08:00
|
|
|
{% if enable_network_policy %}
|
2016-10-10 22:09:50 +08:00
|
|
|
"policy": {
|
|
|
|
"type": "k8s"
|
|
|
|
},
|
2016-11-14 15:48:28 +08:00
|
|
|
{% endif %}
|
|
|
|
{% if calico_mtu is defined and calico_mtu is number %}
|
|
|
|
"mtu": {{ calico_mtu }},
|
2016-10-10 22:09:50 +08:00
|
|
|
{% endif %}
|
2016-10-06 18:06:19 +08:00
|
|
|
"kubernetes": {
|
|
|
|
"kubeconfig": "{{ kube_config_dir }}/node-kubeconfig.yaml"
|
2016-01-30 23:04:47 +08:00
|
|
|
}
|
|
|
|
}
|