diff --git a/templates/k3s-config.yaml.j2 b/templates/k3s-config.yaml.j2 index f7097d4..7f87edd 100644 --- a/templates/k3s-config.yaml.j2 +++ b/templates/k3s-config.yaml.j2 @@ -43,6 +43,8 @@ kubelet-arg: - system-reserved=cpu={{ kubelet_arg_system_reserved_cpu }},memory={{ kubelet_arg_system_reserved_memory }},ephemeral-storage={{ kubelet_arg_system_reserved_storage }} {% if host_external_ip | default('') %}node-external-ip: "{{ host_external_ip }}"{% endif %} +node-name: {{ inventory_hostname }} + {% if groups[kubernetes_config.cluster.group_name] | default([]) | list | length > 0 -%}