bhouse-nexthop commented on PR #14769: URL: https://github.com/apache/cloudstack/pull/14769#issuecomment-7133473146
Lab test of the join-address change: KVM, isolated network, a 4.22-based build (46372ad40b) and a main-based build (d385b9d0df). "Private" is the control node's own IP and "public" is the cluster's public IP. 4.22-based build, addNodesToKubernetesCluster: | case | join in the added node's user data | management server log | |---|---|---| | stacked cluster (1 control + 1 worker) | `kubeadm join <private>:6443 … --discovery-token-ca-cert-hash`, Ready, no x509 errors | no "not valid for" | | external etcd cluster created on this build (served cert covers 10.96.0.1, private and public) | `<private>:6443`, Ready | no "not valid for" | | same cluster with apiserver.crt regenerated without the private IP (as clusters created before the fix have it) | `<public>:6443`, Ready, no x509 errors | `The API server certificate of Kubernetes cluster … is not valid for <private>, nodes join on <public>` | Run by hand on the control nodes, the check prints `IP <private> does match certificate`, and `does NOT match` after the regeneration. openssl is present there (OpenSSL 3.0.13). Main-based build, recreate rollouts (worker template change, `rollout=true`), upgraded in place from the 4.22-based build with the clusters above: | case | recreated worker's join and ExecStartPre | log | |---|---|---| | stacked cluster | `<private>:6443` kept in both, Ready | no "not valid for" | | external etcd cluster created on this build: add-node, then recreate | `<private>:6443` for both, Ready | no "not valid for" | | external etcd cluster with the cert lacking the private IP | join and curl rewritten to `<public>:6443`, node rejoined Ready, no x509 errors | `… is not valid for <private>, node <worker> joins on <public>` | This also covers the external-etcd results from my earlier run that I hadn't posted. On both build lines, clusters created with this change get the control node's private IP in the API server certificate and in `certSANs`. Their workers join on the private IP with a fresh token and the CA hash, and the add-node and scale tokens are deleted afterwards. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
