From da4f1857c6b4834892c81f276f52c0f9814da6b1 Mon Sep 17 00:00:00 2001 From: nareshwart Date: Tue, 2 Jan 2024 22:45:27 +0530 Subject: [PATCH] Revert "Update installK8S.sh" This reverts commit 868fba0a3e44738d2a8cb53b9f9271f4b74a83f0. --- scripts/installK8S.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/installK8S.sh b/scripts/installK8S.sh index 6a0baed8..f44938ed 100755 --- a/scripts/installK8S.sh +++ b/scripts/installK8S.sh @@ -4,10 +4,13 @@ install_ubuntu() { #### Install Kubernetes latest components sudo apt-get update - sudo apt-get install -y apt-transport-https ca-certificates curl gpg + sudo apt-get install -y apt-transport-https ca-certificates curl echo "starting the installation of k8s components (kubeadm,kubelet,kubectl) ...." - 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 + #sudo curl -fsSLo /etc/apt/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg + #sudo curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg + sudo curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/kubernetes-archive-keyring.gpg + #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-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list sudo apt-get update sudo apt-get install -y kubelet kubeadm kubectl