From dd909b3194535356e8beea487cf3d84157a72d80 Mon Sep 17 00:00:00 2001 From: Elliot Courant Date: Sun, 19 May 2024 17:50:43 -0500 Subject: [PATCH] fix(debian): Fix kubernetes apt repo --- images/debian/12.1/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/images/debian/12.1/Dockerfile b/images/debian/12.1/Dockerfile index f338c64..320481a 100644 --- a/images/debian/12.1/Dockerfile +++ b/images/debian/12.1/Dockerfile @@ -29,8 +29,8 @@ RUN curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | tee /usr/share/ echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | tee /etc/apt/sources.list.d/helm-stable-debian.list # Kubernetes repo -RUN curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add && \ - apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-xenial main" +RUN curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.29/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg && \ + echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.29/deb/ /' | tee /etc/apt/sources.list.d/kubernetes.list # Docker CLI stuff. RUN mkdir -p /etc/apt/keyrings && \