Skip to content

Using Kubernetes resources right after creating the cluster #324

Answered by mysticaltech
captnCC asked this question in Q&A
Discussion options

You must be logged in to vote

@captnCC This regularly happens to me when I first try to kubectl into the cluster the first time. Glad you bumped into this issue so we can fix it. There is a param in k3s install config called tls-san. I believe that if we set it to the external IP of the node, your issue will disappear.

I just checked and it is already being used when use_control_plane_lb is set to true (see init.tf and control_planes.tf), so that should fix your issue out of the box. It basically creates an LB just to load balance calls to the control-plane, and during the implementation of that feature tls-san was correctly set, but not for the normal use case without that LBs.

The changes need to happen in both init.tf

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mysticaltech
Comment options

Answer selected by mysticaltech
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants