Building a new cluster with talosctl gen config results in 127.0.0.1 defined as the endpoints in the talosconfig file #8297
-
I am just getting started with talos, so I don't know a ton about how things work or are expected to work. I was following the getting started guide here to install on a vm from an iso, I'm doing a single node cluster for a POC: https://www.talos.dev/v1.6/introduction/getting-started/ When I run talosctl gen config talos-test https://10.23.40.1:6443, I see this in the resulting talosconfig file:
I would have expected the endpoints key to be set to 10.23.40.1 vs. 127.0.0.1? Is this a bug or expected behavior? I was able to build the cluster, but to use the dashboard correctly as an example, I had to change this key to the correct IP address. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
That's as expected. In your case, just configure talosconfig with the correct endpoints: https://www.talos.dev/v1.6/introduction/prodnotes/#endpoints |
Beta Was this translation helpful? Give feedback.
That's as expected.
10.23.40.1 may be a Talos VIP, which should not be used as an endpoint (as it will be down when K8s or etcd is down, and then you couldn't issue talosctl commands to recover.)
More details: https://www.talos.dev/v1.6/learn-more/talosctl/#endpoints-and-nodes
In your case, just configure talosconfig with the correct endpoints: https://www.talos.dev/v1.6/introduction/prodnotes/#endpoints
or pass them in to the command.