From 53f3723353720d748f8abc73f90d6c0f603809ed 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 70d50c2..ae0983c 100644 --- a/README.md +++ b/README.md @@ -121,10 +121,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`**