release: Upgrade to v18.4 failed, cannot install both kubelet-1.18.4-1.x86_64 and kubelet-1.18.4-0.x86_64
What happened:
on the master centos-8 there is the following error message when trying to update the packages.
Problem: cannot install both kubelet-1.18.4-1.x86_64 and kubelet-1.18.4-0.x86_64
- cannot install the best update candidate for package kubernetes-cni-0.7.5-0.x86_64
- cannot install the best update candidate for package kubelet-1.18.3-0.x86_64
We don’t see this problem in the nodes centos-7
Likewise, we did not see this error in the master centtos-8 in the last update to v18.3.
How to reproduce it (as minimally and precisely as possible): yum update / dnf update
Environment:
- Kubernetes version (use
kubectl version):
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.3", GitCommit:"2e7996e3e2712684bc73f0dec0200d64eec7fe40", GitTreeState:"clean", BuildDate:"2020-05-20T12:52:00Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.3", GitCommit:"2e7996e3e2712684bc73f0dec0200d64eec7fe40", GitTreeState:"clean", BuildDate:"2020-05-20T12:43:34Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
- Cloud provider or hardware configuration: vmware
- OS (e.g:
cat /etc/os-release): centos-8
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 1
- Comments: 55 (17 by maintainers)
Commits related to this issue
- Update k8s 1.18 install to overcome conflict errors Due to a bug in k8s there is a conflict issue during provisioning. https://github.com/kubernetes/kubernetes/issues/92463 Signed-off-by: Or Shoval... — committed to oshoval/kubevirtci by oshoval 4 years ago
- Update k8s 1.17 install to overcome conflict errors Due to a bug in k8s there is a conflict issue during provisioning. https://github.com/kubernetes/kubernetes/issues/92463 Signed-off-by: Or Shoval... — committed to oshoval/kubevirtci by oshoval 4 years ago
- Fix K8s 1.17, 1.18 provisioning (#395) * Update k8s 1.18 install to overcome conflict errors Due to a bug in k8s there is a conflict issue during provisioning. https://github.com/kubernetes/kuberne... — committed to kubevirt/kubevirtci by oshoval 4 years ago
I add follow config to
/etc/yum.confto exclude conflict kubeletthen use
dnf upgradeto upgrade kubelet 1.19.0 without problem.I hope it can help you.
It did help, quite a lot. Thanks for this.
What I ended up doing, was to
exclude=kubelet-1.1*I am adding this to my ansible kubernetes deployment playbooks. Sweet and short.
Thanks a ton!
As new repositories do not include Kubernetes 1.16, 1.17, or 1.18 this issue can be closed.
last supported version is 1.24 https://kubernetes.io/releases/
There is no support for upgrading since 1.18 to any of the supported versions https://kubernetes.io/releases/version-skew-policy/#supported-component-upgrade-order
/close