diff --git a/roles/network_plugin/calico/templates/cni-calico.conf.j2 b/roles/network_plugin/calico/templates/cni-calico.conf.j2 index 973c7de53..f49682ea9 100644 --- a/roles/network_plugin/calico/templates/cni-calico.conf.j2 +++ b/roles/network_plugin/calico/templates/cni-calico.conf.j2 @@ -1,9 +1,9 @@ { "name": "calico-k8s-network", {% if cloud_provider is defined %} - "hostname": "{{ inventory_hostname }}", + "nodename": "{{ inventory_hostname }}", {% else %} - "hostname": "{{ ansible_hostname }}", + "nodename": "{{ ansible_hostname }}", {% endif %} "type": "calico", "etcd_endpoints": "{{ etcd_access_endpoint }}",