-
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
Kubeadm 1.15.2 upgrade fails #2352
Comments
New reproduce with kubeadm 1.16 Create cluster
Get current date
Lets go 11 months inyo future
Renew Certificates in future
Lets go more into future
Fix kubelet.conf with new certificates
|
With 1.17 kubeadm it is ok. From 1.17 kubeadm alpha cert renew upgrades kubelet.conf itself. #1753
Lets renew certs in future
Lets go more into future
|
hello, first of all older versions than 1.17 are already out of support, and 1.17 will be out of support soon with the release of 1.20. a couple of points:
kubeadm renew does not touch kubelet.conf, it is the responsibility of "kubeadm init" to prepare kubelet.conf to point to cert files instead of embedding certs.
note that when you are doing that artificially, you might trip the kubelet cert renewal mechanism and the files in /var/lib/kubelet/pki might not get renewed properly. if 1.17 works for you just try to upgrade to this version, but then also upgrade to 1.18. let me know if you have more questions. /kind support |
@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. |
What keywords did you search in kubeadm issues before filing this one?
nodes "kube-apiserver-kubelet-client" not found
[upgrade/config] FATAL: failed to get node registration: failed to get corresponding node: nodes "kube-apiserver-kubelet-client" not found
If you have found any duplicates, you should instead reply there and close this page.
If you have not found any duplicates, delete this section and continue on.
Is this a BUG REPORT or FEATURE REQUEST?
BUG REPORT
Versions
kubeadm version (use
kubeadm version
):kubeadm version: &version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.2", GitCommit:"f6278300bebbb750328ac16ee6dd3aa7d3549568", GitTreeState:"clean", BuildDate:"2019-08-05T09:20:51Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
Environment:
kubectl version
):Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.2", GitCommit:"f6278300bebbb750328ac16ee6dd3aa7d3549568", GitTreeState:"clean", BuildDate:"2019-08-05T09:23:26Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.2", GitCommit:"f6278300bebbb750328ac16ee6dd3aa7d3549568", GitTreeState:"clean", BuildDate:"2019-08-05T09:15:22Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
Azure
Centos 7.2
uname -a
):Linux kube-master-we 3.10.0-1062.12.1.el7.x86_64 kubeadm join on slave node fails preflight checks #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
What happened?
Master node name kube-master-we
What you expected to happen?
How to reproduce it (as minimally and precisely as possible)?
Created local master node with Vagrant
Create cluster and get current date
Lets go In future and check certificate expiration date
Lets renew certs in future
Lets go more into future
Fix 1.15 kubelet.conf issue #2185
Reproduced issue
Workaround
The text was updated successfully, but these errors were encountered: