2016-01-30 15:04:47 +00:00
|
|
|
{
|
|
|
|
"name": "calico-k8s-network",
|
2017-09-07 22:19:46 +00:00
|
|
|
{% if cloud_provider is defined %}
|
2017-09-24 08:22:15 +00:00
|
|
|
"nodename": "{{ calico_kubelet_name.stdout }}",
|
2017-09-07 22:19:46 +00:00
|
|
|
{% else %}
|
2017-09-07 22:21:40 +00:00
|
|
|
"nodename": "{{ ansible_hostname }}",
|
2017-09-07 22:19:46 +00:00
|
|
|
{% endif %}
|
2016-01-30 15:04:47 +00:00
|
|
|
"type": "calico",
|
2016-11-09 10:31:12 +00:00
|
|
|
"etcd_endpoints": "{{ etcd_access_endpoint }}",
|
2016-12-13 09:03:35 +00: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 10:44:41 +00:00
|
|
|
"etcd_ca_cert_file": "{{ etcd_cert_dir }}/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
|
|
|
},
|
2017-03-13 15:04:31 +00:00
|
|
|
{% if enable_network_policy %}
|
2016-10-10 14:09:50 +00:00
|
|
|
"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
|
|
|
}
|
|
|
|
}
|