황원재 황원재 03-14
test
@cbfea88d4e33cf8d0e1474b4f5c5316fea2dc803
221020/k8s-install-setup.sh
--- 221020/k8s-install-setup.sh
+++ 221020/k8s-install-setup.sh
File mode has changed
@@ -11,8 +11,8 @@
 apt-get update
 apt-get install -y apt-transport-https ca-certificates curl
 rm -f /usr/share/keyrings/kubernetes-archive-keyring.gpg
-curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg
-echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list
+curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.29/deb/Release.key | sudo 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/ /' | sudo tee /etc/apt/sources.list.d/kubernetes.list
 apt-get update
 apt-get install -y kubelet kubeadm kubectl
 apt-mark hold kubelet kubeadm kubectl
Add a comment
List