Skip to content

Commit

Permalink
Update init_worker_node.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
abrami authored Oct 17, 2024
1 parent fb4ec28 commit 42c1e19
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions instructions/kubernetes/init_worker_node.sh
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

0 comments on commit 42c1e19

Please sign in to comment.