<p>I am going through the Kubernetes installation docs (<a href="https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/" rel="nofollow noreferrer">https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/</a>) and I am at the point where I am suppose to install the <code>kubelet</code>, <code>kubeadm</code> and <code>kubectl</code> RPMs.  I created this yum repo:</p>

<pre><code>[root@stg-003 ~]# cat /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
exclude=kubelet kubeadm kubectl
</code></pre>

<p>Then I execute this yum command:</p>

<pre><code>[root@stg-003 ~]# yum install -y kubelet kubeadm kubectl –disableexcludes=kubernetes
</code></pre>

<p>Which gives this output:</p>

<pre><code>Loaded plugins: fastestmirror, langpacks, merge-conf, priorities, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
13024 packages excluded due to repository priority protections
No package kubelet available.
No package kubeadm available.
No package kubectl available.
Error: Nothing to do
</code></pre>

<p>I went here <a href="https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64/Packages" rel="nofollow noreferrer">https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64/Packages</a> and there are no packages! </p>

<p>So how do I install <code>kubelet</code>, <code>kubeadm</code> and <code>kubectl</code> RPMs?</p>

Red Cricket
<p>If you check the file repo that's kubernetes.repo you are clearly excluding all the three packages. How will yum find it, if you are to exclude those?</p>

<p>However there's also a failure in the above command. 
<em>Yum treats unicode characters as part of package names.</em></p>

<p>Check for the <strong>--</strong> double dash that you missed in above command.</p>

<pre><code>yum install -y kubelet kubeadm kubectl --disableexcludes=kubernetes

</code></pre>

<p>There's an open PR for the same on there website.
<a href="https://github.com/kubernetes/website/issues/20915" rel="nofollow noreferrer">https://github.com/kubernetes/website/issues/20915</a></p>

<p>Also the packages are never stored in open, they pick the data from XML files stored in the other folder. 
Please try and remove the exclude file from repo file.</p>

<p>A wide list of all repos can be found here. It's the same repo that's in the kubernetes docs.</p>

<p><a href="https://packages.cloud.google.com/yum/repos/" rel="nofollow noreferrer">https://packages.cloud.google.com/yum/repos/</a></p>
