-
Notifications
You must be signed in to change notification settings - Fork 716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't get the controlPlaneEndPoint info #2167
Comments
hi, are you sure you didn't delete the field /priority awaiting-more-evidence |
@neolit123 yes,i'm pretty sure. does somewhere has log the see what going on when it write configuration to the configmap. Maybe is there some reason to make it skip the field |
no, kubeadm just writes the whole ClusterConfiguration. |
@neolit123 yes, you can see that by the attached file. by the way, at the firstly, when I use the command "kubeadm config print init-defaults > kubeadm-config.yaml" to generate the kubeadm-config.yaml. there is no |
that is because the i tried reproducing the bug: config:
command:
as you can see please verify your setup and let me know if you have more questions. thanks. |
@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. |
@neolit123 I uploaded an operate video to YouTube, and in this video you can see that there is really no controlPlaneEndpoint field. |
@lovexiongmao thanks for the video. i noticed that you are using we used to have warnings printed to the user if one of the YAML fields is unknown / malformed but it seems we have a bug that these warnings are no longer printed. i will log a separate ticket for that. |
so the issue is already logged and it's in the yaml library that we use: |
@neolit123 thank you very much, it work now! |
BUG REPORT
Versions
kubeadm 1.18
Environment:
kubectl version
):kubernetes 1.18
3U4G
centos 7
uname -a
):3.10.0-1127.el7.x86_64 kubeadm join on slave node fails preflight checks #1 SMP Tue Mar 31 23:36:51 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
my cluster is setup on bare metal.
What happened?
I config the kubeadm-config.yaml to setup a HA cluster. so I add controlPlaneEndPoint: master01ip:6443 to the kubeadm-config.yaml. And execute "kubeadm init --config=kubeadm-config.yaml --upload-certs |tee kubeadm-init.log" command.
But when the command is done, I can't find the controlPlaneEndPoint info in the configmap of kubeadm by execute "kubectl describe cm kubeadm-config -n kube-system"
Also i can't add a new master to the cluster by the command
kubeadm join 172.16.5.181:6443 --token abcdef.0123456789abcdef --discovery-token-ca-cert-hash sha256:4e8b505b63bb06a474e226ced59f762442dbd5a454904974eb8ecc5ed8e52466 --control-plane --certificate-key 357624cba92341cb5350e299dd97f2b379488c9ed352a5249d45cd481a73b0b6 --v=9
I get the error like this "unable to add a new control plane instance a cluster that doesn't have a stable controoint address"What you expected to happen?
I expected I can see the controlPlaneEndPoint info in the configmap of kubeadm. And I hope I can add new master to the cluster successly.
How to reproduce it (as minimally and precisely as possible)?
just follow the official documentation
Anything else we need to know?
I installed it offline
in the Attached the kubeadm-config.txt is my kubeadm init file. and the kubeadm-configMap.txt is
obtained by command "kubectl describe cm kubeadm-config -n kube-system"
kubeadm-config.txt
kubeadm-configMap.txt
The text was updated successfully, but these errors were encountered: