Refactor: var kube_override_hostname only reserve in kubespray-defaults

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
This commit is contained in:
ChengHao Yang
2024-11-04 23:40:01 +08:00
parent 437026f514
commit c27cc33bd7
5 changed files with 2 additions and 31 deletions

View File

@@ -253,11 +253,7 @@ kube_apiserver_bind_address: 0.0.0.0
kube_apiserver_port: 6443
# If non-empty, will use this string as identification instead of the actual hostname
kube_override_hostname: >-
{%- if cloud_provider is defined -%}
{%- else -%}
{{ inventory_hostname }}
{%- endif -%}
kube_override_hostname: "{{ inventory_hostname }}"
# define kubelet config dir for dynamic kubelet
# kubelet_config_dir: