I am trying to download only kubectl kubeadm and kubelet 1.16 version in centos server. But when I am downloading through yumdownloader command, i am getting below error?
yum install --downloadonly --downloaddir=/home/papunbose/kubernetes yum-utils kubeadm-1.16.* kubelet-1.16.* kubectl-1.16.* ebtables
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.scaleuptech.com
* epel: mirror.nsc.liu.se
* extras: mirror.1000mbps.com
* updates: ftp.tudelft.nl
Package yum-utils-1.1.31-54.el7_8.noarch already installed and latest version
No package kubeadm-1.16.* available.
No package kubelet-1.16.* available.
No package kubectl-1.16.* available.
Package ebtables-2.0.10-16.el7.x86_64 already installed and latest version
Nothing to do
Please let me know how to fix this issue.
This appears to be issue with yum. You can try doing yum update and retry your installation. You may also check your repos in /etc/yum.repos.d if they are enabled or not. There will be a value for enabled it will be 1 if repo was enabled
From the documentation, try this :
cat <<EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
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
yum install -y kubectl