mirror of https://github.com/easzlab/kubeasz.git
parent
0e9c007349
commit
83381963b4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue