fix calico hostname setting

pull/1381/head 3.6.4
gjmzj 2024-05-22 23:09:15 +08:00
parent 0e9c007349
commit 83381963b4
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ K8S_VER: "__k8s_ver__"
K8S_NODENAME: "{%- if k8s_nodename != '' -%} \ K8S_NODENAME: "{%- if k8s_nodename != '' -%} \
{{ k8s_nodename|replace('_', '-')|lower }} \ {{ k8s_nodename|replace('_', '-')|lower }} \
{%- else -%} \ {%- else -%} \
{{ inventory_hostname|replace('.', '-') }} \ k8s-{{ inventory_hostname|replace('.', '-') }} \
{%- endif -%}" {%- endif -%}"
# use 'K8S_NODENAME' to set hostname # use 'K8S_NODENAME' to set hostname