Cluster nodes by name instead of (mutable) ip.

This commit is contained in:
2025-07-21 17:32:21 -07:00
parent 9d1ad5950b
commit c0b1d60e7b
7 changed files with 197 additions and 158 deletions

View File

@@ -1,10 +1,11 @@
machine:
install:
disk: {{ index .cluster.nodes.active "{{NODE_IP}}" "disk" }}
disk: {{ index .cluster.nodes.active "{{NODE_NAME}}" "disk" }}
image: factory.talos.dev/metal-installer/{{ .cluster.nodes.talos.schematicId}}:{{ .cluster.nodes.talos.version}}
network:
hostname: "{{NODE_NAME}}"
interfaces:
- interface: {{ index .cluster.nodes.active "{{NODE_IP}}" "interface" }}
- interface: {{ index .cluster.nodes.active "{{NODE_NAME}}" "interface" }}
dhcp: false
addresses:
- "{{NODE_IP}}/24"