budimanjojo/talhelper

Add gencommand talosctl kubeconfig

Closed this issue · 4 comments

Creating a kubeconfig is a bit tricky because you have to know which endpoint to use:

talosctl kubeconfig .
command "kubeconfig" is not supported with multiple nodes

talhelper could just grab the endpoint from the talconfig which is https://${CLUSTER_VIP}:6443 in my case...

There's talhelper gencommand kubeconfig. Are you on the latest talhelper release?

Yes there is this command but my point is that it does not include the endpoint parameter so you get the error message…

 talhelper gencommand kubeconfig
talosctl kubeconfig --talosconfig=./clusterconfig/talosconfig --nodes=192.168.200.11;

It does have endpoint, not sure why it's not on yours. Can you show me your talconfig.yaml file?

sorry you are right... it was my fault.