Skip to content
Snippets Groups Projects
Commit 8872b2e0 authored by Chad Swenson's avatar Chad Swenson Committed by Kubernetes Prow Robot
Browse files

Fix calico when kube_override_hostname is set (#4235)

This fixes an issue where the `nodename` in calico's cni config json can fall out of sync with the k8s node name used by the calico pod if `kube_override_hostname` is set
parent 061f5a31
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,7 @@ calico_healthhost: "localhost" ...@@ -61,7 +61,7 @@ calico_healthhost: "localhost"
# see https://docs.projectcalico.org/v3.0/reference/node/configuration#ip-autodetection-methods # see https://docs.projectcalico.org/v3.0/reference/node/configuration#ip-autodetection-methods
# calico_ip_auto_method: "interface=eth.*" # calico_ip_auto_method: "interface=eth.*"
calico_baremetal_nodename: "{{ inventory_hostname }}" calico_baremetal_nodename: "{{ kube_override_hostname | default(inventory_hostname) }}"
### do not enable this, this is detected in scope of tasks, this is just a default value ### do not enable this, this is detected in scope of tasks, this is just a default value
calico_upgrade_needed: false calico_upgrade_needed: false
--- ---
- include_tasks: check.yml - import_tasks: check.yml
- include_tasks: pre.yml - import_tasks: pre.yml
- import_tasks: upgrade.yml - import_tasks: upgrade.yml
when: when:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment