Ciao Luca,
Long time not seen ;)
This is what I did.
Add the kubernetes repository to your redhat/centos system:
cat <<EOF
cat <<EOF | sudo tee /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
exclude=kubelet kubeadm kubectl
EOF
Then install the correct versions with:
$ sudo yum install -y kubelet-1.16.0 kubeadm-1.16.0 kubectl-1.16.0 --disableexcludes=kubernetes
$ sudo systemctl enable --now kubelet
That should do it. Notice the version information in calling out the RPM call. You can use the version you want. Check the existing ones in the repositoryTo make sure a newer version will not be installed with a yum update call, lock that software version with:
$ sudo yum install yum-plugin-versionlock
$ yum versionlock kubelet-1.16.0 kubeadm-1.16.0 kubectl-1.16.0
PS: The versionlock plugin for yum needs to be installed first or the functionality will not be valid in yum.