Repository navigation
fix(k8s): link kubeadm config to /kind/kubeadm.conf for cert regeneration - #2344
Open
yafeng-Soong wants to merge 1 commit into
Open
yafeng-Soong wants to merge 1 commit into
yafeng-Soong wants to merge 1 commit into
Conversation
yafeng-Soong
force-pushed
the
fix/k8s-kind-kubeadm-conf
branch
from
October 17, 2026 15:20
c424972 to
415a5a1
Compare
…tion Signed-off-by: yafeng-Soong <397655952@qq.com>
yafeng-Soong
force-pushed
the
fix/k8s-kind-kubeadm-conf
branch
from
October 17, 2026 16:04
415a5a1 to
85c0bcf
Compare
3 tasks done
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of Change
Motivation and Context
Closes #2410
When a
kindest/nodecontainer restarts with an IP change, its built-in entrypoint deletes/etc/kubernetes/pki/apiserver.*and attempts to regenerate them via
kubeadm init phase certs apiserver --config /kind/kubeadm.conf.Because Apple's k8s plugin only wrote the configuration to
/etc/kubernetes/kubeadm-config.yaml, the regeneration failed withopen /kind/kubeadm.conf: no such file or directory, causingkube-apiserverto fail permanently andkubectlcommands to hang.This PR ensures that
/kind/kubeadm.confis symlinked to/etc/kubernetes/kubeadm-config.yamlduring control plane bootstrap,allowing the kind entrypoint to successfully refresh API server certificates on container reboot.
Testing
Tests/IntegrationTests/K8s/TestK8sRunSerial.swift)