Skip to content

Commit

Permalink
fix calico hostname setting
Browse files Browse the repository at this point in the history
  • Loading branch information
gjmzj committed May 22, 2024
1 parent 0e9c007 commit 8338196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ K8S_VER: "__k8s_ver__"
K8S_NODENAME: "{%- if k8s_nodename != '' -%} \
{{ k8s_nodename|replace('_', '-')|lower }} \
{%- else -%} \
{{ inventory_hostname|replace('.', '-') }} \
k8s-{{ inventory_hostname|replace('.', '-') }} \
{%- endif -%}"

# use 'K8S_NODENAME' to set hostname
Expand Down

0 comments on commit 8338196

Please sign in to comment.