🏗️」 wip: installing correctly kubectl

This commit is contained in:
2025-08-18 19:40:36 +02:00
parent a77f436878
commit 7cdf65c899
10 changed files with 59 additions and 146 deletions

18
p1/install-all.sh Normal file
View File

@ -0,0 +1,18 @@
#!/usr/bin/env sh
# setup docker
sudo apt update
sudo apt install -y docker.io
sudo systemctl start docker
sudo systemctl enable docker
# install kubernetes
sudo apt-get install -y apt-transport-https ca-certificates curl gpg
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.33/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.33/deb/ /' | sudo tee /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update
sudo apt-get install -y kubelet kubectl
sudo apt-mark hold kubelet kubectl
sudo systemctl enable --now kubelet