Kubernetes Repo Changes
Posted on Monday, September 11 2023.
The Kubernetes community has changed to community-owned package repositories. Learn how to update your SLATE Clusters in this blog.
What Changed?
- Kubernetes Legacy Package Repositories Will Be Frozen On September 13, 2023
- pkgs.k8s.io: Introducing Kubernetes Community-Owned Package Repositories
How does this affect us as SLATE Administrators?
The amount of work to change over to the new package repositories is relatively small.
SSH to your SLATE Cluster master node and switch to the
rootuser.Execute the following to update the package repository file for Kubernetes
1.24.x.export KUBE_VERSION=1.24 && \ cat <<EOF | tee /etc/yum.repos.d/kubernetes.repo [kubernetes] name=Kubernetes baseurl=https://pkgs.k8s.io/core:/stable:/v${KUBE_VERSION}/rpm/ enabled=1 gpgcheck=1 gpgkey=https://pkgs.k8s.io/core:/stable:/v${KUBE_VERSION}/rpm/repodata/repomd.xml.key EOFVerify the changes by executing:
yum list kubectlIf the results include versions other than
1.24.x, remove cached Yum packages and headers:yum clean alland check again.
Close the connection and repeat the previous steps on each of your SLATE Cluster worker nodes.
Continue to update patch versions of the various Kubernetes
1.24.xpackages normally through commands likeyum update ...ordnf update ....
Adam Griffith