From 7b8f4723321a5887bbd0db0a74f81d17aa6d976b Mon Sep 17 00:00:00 2001 From: Lee Porte Date: Wed, 10 Jan 2024 18:08:37 +0000 Subject: [PATCH] Update repo information In light of the move from apt.kubernetes.io to pkgs.k8s.io (https://kubernetes.io/blog/2023/08/31/legacy-package-repository-deprecation/) it makes sense to update this in the guide. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3881f04..c653677 100644 --- a/README.md +++ b/README.md @@ -122,10 +122,10 @@ sudo apt-get install -y apt-transport-https ca-certificates curl **3. Configure apt-get cert and repo** ```bash -sudo curl -fsSLo /etc/apt/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg +curl -fsSL https://pkgs.k8s.io/core:/stable:/v$VERSION/deb/Release.key | sudo gpg --dearmor -o /usr/share/keyrings/kubernetes-apt-keyring.gpg ``` ```bash -echo "deb [signed-by=/etc/apt/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list +echo "deb [signed-by=/usr/share/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v$VERSION/deb/ /" | sudo tee /etc/apt/sources.list.d/kubernetes.list ``` **4. Update apt and install `kubelet`, `kubeadm`, and `kubectl`**