<p>When I navigate to the URL, there do not appear to be any packages in the repo. Consider trying a mirror like: mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64</p>

CC BY-SA 4.0
2021-01-14T18:26:11.047Z
2021-01-14T18:26:11.047Z
James Shewey
<p>Following the <a href="https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/" rel="nofollow noreferrer">official documentation</a>, I have an error when trying to install kubernetes cluster yum package.</p>
<p>I am on Centos 7 using yum. So I run this commands:</p>
<pre><code>cat &lt;&lt;EOF | sudo tee /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-\$basearch
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF

# Set SELinux in permissive mode (effectively disabling it) 
setenforce 0
sed -i 's/^SELINUX=enforcing$/SELINUX=permissive/' /etc/selinux/config
</code></pre>
<p>Indeed when I am trying to run <code>yum install -y kubelet kubeadm kubectl</code> I have this error:</p>
<pre><code>Loading mirror speeds from cached hostfile
No package kubelet available.
No package kubeadm available.
No package kubectl available.
Error: Nothing to do
</code></pre>
<p>What if the real problem about the installation ?</p>

CC BY-SA 4.0
2021-01-12T21:33:44.857Z
Are you check if the repository was added at CentOS?
Vader
<kubernetes><linux><kubectl><centos><kubeadm>
Failed to install kubernetes on centos
french_dev
# Failed to install kubernetes on centos

(Asked by: username_0 on 2021-01-09)

Following the official documentation, I have an error when trying to install kubernetes cluster yum package.
I am on Centos 7 using yum. So I run this commands:
cat <
Indeed when I am trying to run yum install -y kubelet kubeadm kubectl I have this error:
Loading mirror speeds from cached hostfile
No package kubelet available.
No package kubeadm available.
No package kubectl available.
Error: Nothing to do

What if the real problem about the installation ?

**Tags:** kubernetes, linux, kubectl, centos, kubeadm

> **Comments:**
> **username_1**: Are you check if the repository was added at CentOS?  

---

## 1 answers

### Answer by username_2 on 2021-01-14. Score: 1 | Accepted answer

When I navigate to the URL, there do not appear to be any packages in the repo. Consider trying a mirror like: mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86\_64


---

