--- 221020/k8s-install-setup.sh
+++ 221020/k8s-install-setup.sh
100755 | 100644 | File mode has changed |
... | ... | @@ -11,8 +11,8 @@ |
11 | 11 |
apt-get update |
12 | 12 |
apt-get install -y apt-transport-https ca-certificates curl |
13 | 13 |
rm -f /usr/share/keyrings/kubernetes-archive-keyring.gpg |
14 |
-curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg |
|
15 |
-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 |
|
14 |
+curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.29/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg |
|
15 |
+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 |
|
16 | 16 |
apt-get update |
17 | 17 |
apt-get install -y kubelet kubeadm kubectl |
18 | 18 |
apt-mark hold kubelet kubeadm kubectl |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?