You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CKS: allow extra DNS names and IP addresses in the API server certificate #14903
The API server certificate of a CKS cluster covers only the addresses CloudStack knows: the control node IP and the cluster's public (or external load balancer) IP. A client that reaches the cluster any other way gets a certificate error:
a DNS name in front of the load balancer, such as k8s.example.com
a NAT address or a VIP in front of the cluster
kubectl then fails with x509: certificate is valid for ..., not k8s.example.com.
The only way around it is insecure-skip-tls-verify, or regenerating the API server certificate by hand on every control node.
Proposal
Let createKubernetesCluster take extra DNS names and IP addresses for the API server certificate. CKS passes them to kubeadm init with the addresses it adds today. Control nodes that join later and kubeadm certs renew keep them.
Versions
CloudStack main (24.0.0-SNAPSHOT), KVM, any network type. 4.22 behaves the same.
Activity