mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-17 08:57:36 -02:30
baremetal tweaks
* allow installs to not have hostname overriden with fqdn from inventory * calico-config no longer requires local as and will default to global * when cloudprovider is not defined, use the inventory_hostname for cni-calico * allow reset to not restart network (buggy nodes die with this cmd) * default kube_override_hostname to inventory_hostname instead of ansible_hostname
This commit is contained in:
@@ -14,6 +14,6 @@ data:
|
||||
cluster_type: "kubespray,bgp"
|
||||
{% endif %}
|
||||
calico_backend: "bird"
|
||||
{%- if inventory_hostname in groups['k8s-cluster'] and peer_with_router|default(false) %}
|
||||
as: "{{ local_as }}"
|
||||
{% endif -%}
|
||||
{% if inventory_hostname in groups['k8s-cluster'] and peer_with_router|default(false) %}
|
||||
as: "{{ local_as|default(global_as_num) }}"
|
||||
{% endif -%}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
{% if cloud_provider is defined %}
|
||||
"nodename": "{{ calico_kubelet_name.stdout }}",
|
||||
{% else %}
|
||||
"nodename": "{{ ansible_hostname }}",
|
||||
"nodename": "{{ inventory_hostname }}",
|
||||
{% endif %}
|
||||
"type": "calico",
|
||||
"etcd_endpoints": "{{ etcd_access_addresses }}",
|
||||
|
||||
Reference in New Issue
Block a user