Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
kubeadm cannot join control plane node via --config flag #89499
What happened: kubeadm currently fails to join a control plane node in case all settings are provided via a kubeadm configuration file.
What you expected to happen: Joining a new control plane node should be possible without the
How to reproduce it (as minimally and precisely as possible):
Given is the following configuration file:
--- apiVersion: kubeadm.k8s.io/v1beta2 kind: JoinConfiguration discovery: bootstrapToken: apiServerEndpoint: "api.k8s:6443" token: xxxxxxxxxxxxxx cACertHashes: [ ] unsafeSkipCAVerification: true controlPlane: certificateKey: yyyyyyyyyyyyyyyyyy
When joining a node via: `kubeadm join --config kubeadm-join-config.yaml
I get the following error:
Anything else we need to know?:
Relevant code locations:
the warning is false; your config will still be respected. so not passing --control-plane, while only passing --config is fine.
we are tracking the issue here:
and a fix will be available in 1.18.1, but cannot be backported to 1.17*
@neolit123: Closing this issue.
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.