Skip to content
Snippets Groups Projects
Unverified Commit 73a2a180 authored by Aivars Sterns's avatar Aivars Sterns Committed by GitHub
Browse files

Merge pull request #2795 from gfkse/baremetal-override-calico-hostname

Make Calico nodename overridable on bare metal
parents 2ef05fb3 476b14b0
No related branches found
No related tags found
Loading
......@@ -51,3 +51,5 @@ rbac_resources:
# * interface=INTERFACE-REGEX
# see https://docs.projectcalico.org/v3.0/reference/node/configuration#ip-autodetection-methods
# calico_ip_auto_method: "interface=eth.*"
calico_baremetal_nodename: "{{ inventory_hostname }}"
......@@ -6,7 +6,7 @@
{% if cloud_provider is defined %}
"nodename": "{{ calico_kubelet_name.stdout }}",
{% else %}
"nodename": "{{ inventory_hostname }}",
"nodename": "{{ calico_baremetal_nodename }}",
{% endif %}
"type": "calico",
"etcd_endpoints": "{{ etcd_access_addresses }}",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment