From 4a41f7e348d00b91a39160aaa9d8c1cd8e338cb4 Mon Sep 17 00:00:00 2001 From: Jon Date: Thu, 30 Nov 2023 15:44:51 +0930 Subject: [PATCH] feat(config): set node name to inventory_hostname !12 nofusscomputing/infrastructure/configuration-management/project-production!7 --- templates/k3s-config.yaml.j2 | 2 ++ 1 file changed, 2 insertions(+) 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 -%}