From fa689379afb06336f7ea032ea2f2864bfae4af27 Mon Sep 17 00:00:00 2001 From: Wasurerarenai Date: Tue, 30 Jan 2024 06:53:59 -0600 Subject: [PATCH] feat: Support talhelper NodeConfig additions (#1273) * feat: Example talhelper NodeConfig additions * feat: Process talhelper NodeConfig additions --- bootstrap/templates/kubernetes/talos/talconfig.yaml.j2 | 3 +++ config.sample.yaml | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/bootstrap/templates/kubernetes/talos/talconfig.yaml.j2 b/bootstrap/templates/kubernetes/talos/talconfig.yaml.j2 index 81838d93..24cf01c7 100644 --- a/bootstrap/templates/kubernetes/talos/talconfig.yaml.j2 +++ b/bootstrap/templates/kubernetes/talos/talconfig.yaml.j2 @@ -49,6 +49,9 @@ nodes: vip: ip: "{{ cluster.endpoint_vip }}" {% endif %} + {% if item.talos_node_config %} + {{ item.talos_node_config | indent(4, false) }} + {% endif %} {% endfor %} controlPlane: diff --git a/config.sample.yaml b/config.sample.yaml index e9a25ad6..f85d9a36 100644 --- a/config.sample.yaml +++ b/config.sample.yaml @@ -32,6 +32,12 @@ cluster: # controller: true # (Required) Set to true if this is a controller node # ssh_username: "" # (Required: k3s/k0s) SSH username of the node # talos_disk_device: "" # (Required: Talos) Device Path or Serial number of Disk for this node + # talos_node_config: |- # (Optional: Talos) Additional NodeConfigs to apply to this node + # schematic: # See: https://budimanjojo.github.io/talhelper/latest/reference/configuration/#nodeconfigs + # customization: + # systemExtensions: + # officialExtensions: + # - siderolabs/intel-ucode # ... # (Required) The pod CIDR for the cluster, this must NOT overlap with any # existing networks and is usually a /16 (64K IPs).