From 42c1e190eb38c13f419904b23a026e4606831e16 Mon Sep 17 00:00:00 2001 From: Giuseppe Abrami <32450159+abrami@users.noreply.github.com> Date: Thu, 17 Oct 2024 12:56:24 +0200 Subject: [PATCH] Update init_worker_node.sh --- instructions/kubernetes/init_worker_node.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/instructions/kubernetes/init_worker_node.sh b/instructions/kubernetes/init_worker_node.sh index 9d17128c..c7f806e2 100644 --- a/instructions/kubernetes/init_worker_node.sh +++ b/instructions/kubernetes/init_worker_node.sh @@ -1,6 +1,6 @@ #! /usr/bin/bash # Author: Markos Genios, Filip Fitzermann -# Assumes running on Ubuntu 20.04 +# Assumes running on Ubuntu 24.04 # apt update @@ -16,11 +16,11 @@ sudo apt install -y docker.io sudo systemctl enable --now docker # Install auxiliary packages -sudo apt install -y apt-transport-https ca-certificates curl -curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - -echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list +sudo apt-get install -y apt-transport-https ca-certificates curl gpg +curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.30/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg sudo apt update # Install kubelet, kubeadm and kubectl and prevent them from being updated in the future -sudo apt install -y kubelet=1.27.3-00 kubeadm=1.27.3-00 kubectl=1.27.3-00 +sudo apt install -y kubelet kubeadm kubectl sudo apt-mark hold kubelet kubeadm kubectl +sudo systemctl enable --now kubelet