-
Notifications
You must be signed in to change notification settings - Fork 861
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 v1.24 installation failed on Red Hat-based distributions (CentOS7) using the new package repositories hosted at pkgs.k8s.io #6061
Comments
$ cat /etc/yum.repos.d/kubernetes.repo [kubernetes] |
This doesn't seems like a problem of kubeadm itself. |
@nitinjagjivan you have some sort of connectivity issue. the 1.24 install works fine for me. check these logs:
|
this is not a kubeadm bug. /kind support |
Thanks @neolit123 An interesting discovery is that it works well when I install Kubernetes version 1.24.0 on a fresh AWS instance. In a previous instance, I successfully installed version 1.28.3, uninstalled it, and then attempted to install version 1.24.0 and got this error. |
I think the issue is yum cache. I need to refresh the package cache in YUM before installing kubeadm.
|
What keywords did you search in kubeadm issues before filing this one?
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?
Choose one: BUG REPORT
Versions
kubeadm version (use
kubeadm version
): 1.24.0Environment:
kubectl version
): 1.24.0uname -a
): Linux xxx.xxxx.xxxxx. 3.10.0-1160.102.1.el7.x86_64 kubeadm join on slave node fails preflight checks kubeadm#1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 x86_64 x86_64 GNU/LinuxWhat happened?
I am following instructions mentioned at https://v1-24.docs.kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/. Kubeadm install fails with below error:
$ sudo yum install -y kubelet kubeadm kubectl --disableexcludes=kubernetes
Loaded plugins: fastestmirror
Repository 'docker-ce-edge' is missing name in configuration, using id
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package kubeadm.x86_64 0:1.28.3-150500.1.1 will be installed
--> Processing Dependency: kubernetes-cni >= 1.2.0 for package: kubeadm-1.28.3-150500.1.1.x86_64
---> Package kubectl.x86_64 0:1.28.3-150500.1.1 will be installed
---> Package kubelet.x86_64 0:1.28.3-150500.1.1 will be installed
--> Running transaction check
---> Package kubernetes-cni.x86_64 0:1.2.0-150500.2.1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================================================
Installing:
kubeadm x86_64 1.28.3-150500.1.1 kubernetes 9.7 M
kubectl x86_64 1.28.3-150500.1.1 kubernetes 10 M
kubelet x86_64 1.28.3-150500.1.1 kubernetes 19 M
Installing for dependencies:
kubernetes-cni x86_64 1.2.0-150500.2.1 kubernetes 6.2 M
Transaction Summary
====================================================================================================================================================================
Install 3 Packages (+1 Dependent package)
Total size: 45 M
Total download size: 38 M
Installed size: 249 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
kubectl-1.28.3-150500.1.1.x86_ FAILED
https://pkgs.k8s.io/core%3A/stable%3A/v1.24/rpm/x86_64/kubectl-1.28.3-150500.1.1.x86_64.rpm: [Errno 14] HTTPS Error 403 - Forbidden 0.0 B/s | 0 B --:--:-- ETA
Trying other mirror.
To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
kubeadm-1.28.3-150500.1.1.x86_ FAILED
https://pkgs.k8s.io/core%3A/stable%3A/v1.24/rpm/x86_64/kubeadm-1.28.3-150500.1.1.x86_64.rpm: [Errno 14] HTTPS Error 403 - Forbidden 0.0 B/s | 0 B --:--:-- ETA
Trying other mirror.
kubelet-1.28.3-150500.1.1.x86_ FAILED
https://pkgs.k8s.io/core%3A/stable%3A/v1.24/rpm/x86_64/kubelet-1.28.3-150500.1.1.x86_64.rpm: [Errno 14] HTTPS Error 403 - Forbidden 0.0 B/s | 0 B --:--:-- ETA
Trying other mirror.
Error downloading packages:
kubectl-1.28.3-150500.1.1.x86_64: [Errno 256] No more mirrors to try.
kubelet-1.28.3-150500.1.1.x86_64: [Errno 256] No more mirrors to try.
kubeadm-1.28.3-150500.1.1.x86_64: [Errno 256] No more mirrors to try.
What you expected to happen?
v1.24.0 is successfully installed
How to reproduce it (as minimally and precisely as possible)?
Just follow the instructions mentioned at https://v1-24.docs.kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/
Anything else we need to know?
It works well with v1.28.3
The text was updated successfully, but these errors were encountered: