Repository navigation
Conversation
|
Updated after #2289 and #2290: this PR is now limited to an address-independent bootstrap endpoint for new single-node clusters ( I understand that cluster restart is currently outside the documented recovery workflow. This draft does not restore For multiple nodes, loopback is insufficient: the shared kube-proxy configuration and worker discovery need a stable reachable control-plane identity, or explicit reconciliation. That broader lifecycle design remains separate from this proposed bootstrap change. |
d72b952 to
86735d0
Compare
|
@jglogan, could you take a look when you have a chance? This fixes a clean |
|
Independent check of this PR against the kube-proxy half of #2156, on Apple Silicon, container 1.3.1 daemon, plugin built from this branch ( Threw away cluster Create wrote Stop, run an intervening Alpine container so vmnet could not reuse the address, then
So for new clusters this PR does resolve the silent Service-routing break. It does not, and does not claim to, fix clusters created before Note for anyone reproducing on 1.3.1: this branch still embeds |
|
On the long-term endpoint question in your first comment, some data from kiac, which has run multi-node kubeadm on apple/container since June and heals this whenever an address rotates on restart. For the one-VM plugin, loopback as For multi-node, two things that have held up in practice:
Either way, sticky addresses in the runtime (#1740) would make most of this unnecessary, so +1 to that landing first. |
86735d0 to
c3024ee
Compare
After a single-node VM changes IP, the API server can recover while kube-proxy keeps dialing the old address from its persisted ConfigMap. Service routing and CoreDNS then fail even though the node is Ready. #2289 repairs node files and certificates, but does not remove this dependency on the VM address.
Change
For newly created clusters with
--workers 0, set kubeadm'scontrolPlaneEndpointto127.0.0.1:6443. kube-proxy uses the node network namespace and can reach the API through that stable endpoint. The node still advertises its current VM address; the existing entrypoint reconciles address-dependent state.Clusters with separate workers keep the current routable endpoint. Host kubeconfig export and the kubeadm configuration path remain unchanged.
Scope
Draft pending maintainer guidance on #2156 and the lifecycle policy in #2290. This does not restore
k8s start, change the documented recovery workflow, migrate existing clusters, or claim multi-node restart support.Validation
17ea964, including Use a custom entrypoint script for k8s container nodes #2289), macOS 26.6.1/arm64, using the pinned Kubernetes v1.35.5 node image..5 -> .6rotation, using locally built/loaded ARM64 images. Application startup briefly returned 502 before dependencies recovered automatically.git diff --checkpassed.