serving-kube-apiserver.crt missing fqdn #9436
Replies: 3 comments 3 replies
-
Are you sure that you're not using an old kubeconfig to access the host? Did you perhaps modify the kubeconfig to point at a FQDN, while the node's configured hostname is not a FQDN? The If for some reason you want to add additional hostnames or IPs that the cert is valid for, you can use the --tls-san option to add your own. |
Beta Was this translation helpful? Give feedback.
-
thanks brandond, adding --tls-san did the trick and my problem is solved |
Beta Was this translation helpful? Give feedback.
-
I've the same issue, I think. For all my other K3s deployments deployed before (pre v1.28) the FQDN of my master nodes where automatically added to the certificate (without using The error I get when using the FQDN (e.g.
I've tested fresh install with |
Beta Was this translation helpful? Give feedback.
-
I did a clean k3s install (k3s version v1.28.4+k3s2 (6ba6c1b), but "kubectl get nodes" fails with TLS verify.
This is correct, because serving-kube-apiserver.crt does not include the FQDN of my host.
this is strange, I did not have that problem on other host installations.
I checked /etc/hosts /etc/resolv.conf hostname hostname -f , everythink looks good to me.
I fail to understand why the FQDN is not added as an alternative name in the serving-kube-apiserver certificate
maybe I missed some K3S environment vars ... any pointers are appreciated
Beta Was this translation helpful? Give feedback.
All reactions