Update K8s version in install_kubeadm_cluster.sh to 1.28 66/14166/2
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 24 Jan 2024 16:36:49 +0000 (17:36 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 25 Jan 2024 12:41:21 +0000 (13:41 +0100)
Change-Id: Ibc0028df3d41204d630643aff86d8fd9657c5169
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
installers/install_kubeadm_cluster.sh

index 015cfa4..fa89a9a 100755 (executable)
@@ -15,7 +15,7 @@
 
 set +eux
 
-K8S_VERSION=1.26.5-00
+K8S_VERSION=1.28.2-00
 
 # installs kubernetes packages
 function install_kube() {
@@ -24,7 +24,6 @@ function install_kube() {
     # To check other available versions, run the following command
     # curl -s https://packages.cloud.google.com/apt/dists/kubernetes-xenial/main/binary-amd64/Packages | grep Version | awk '{print $2}'
     sudo apt-get -y update && sudo apt-get install -y apt-transport-https ca-certificates curl
-    sudo install -m 0755 -d /etc/apt/keyrings
     curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /etc/apt/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
     sudo apt-get -y update