Set correct endpoins in talosconfig

This commit is contained in:
2025-11-09 05:10:26 +01:00
parent db43cf50fd
commit cc421f69de

View File

@@ -34,5 +34,6 @@ talosctl gen config {{ cluster.name }} https://{{ cluster.controlPlaneIp }}:6443
TALOSCONFIG=${CONFIGS}/talosconfig
rm -f ${TALOSCONFIG}
{% for cluster in clusters -%}
talosctl config --talosconfig=${CONFIGS}/{{ cluster.name }}/talosconfig endpoint {{ cluster.controlPlaneIp }}
talosctl config --talosconfig=${TALOSCONFIG} merge ${CONFIGS}/{{ cluster.name }}/talosconfig
{% endfor %}