Skip to content

Commit 8338196

Browse files
committed
fix calico hostname setting
1 parent 0e9c007 commit 8338196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ K8S_VER: "__k8s_ver__"
3434
K8S_NODENAME: "{%- if k8s_nodename != '' -%} \
3535
{{ k8s_nodename|replace('_', '-')|lower }} \
3636
{%- else -%} \
37-
{{ inventory_hostname|replace('.', '-') }} \
37+
k8s-{{ inventory_hostname|replace('.', '-') }} \
3838
{%- endif -%}"
3939

4040
# use 'K8S_NODENAME' to set hostname

0 commit comments

Comments
 (0)