Skip to content

Instantly share code, notes, and snippets.

@0-9194
Created May 18, 2025 00:21
Show Gist options
  • Select an option

  • Save 0-9194/5fbafafced44e6caee935dae6933bdd0 to your computer and use it in GitHub Desktop.

Select an option

Save 0-9194/5fbafafced44e6caee935dae6933bdd0 to your computer and use it in GitHub Desktop.
K8s Setup script
#!/bin/bash
apt install -y apt-transport-https ca-certificates curl gpg
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.32/deb/Release.key | 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.32/deb/ /' | tee /etc/apt/sources.list.d/kubernetes.list
apt update && apt install -y kubelet kubeadm kubectl && apt-mark hold kubelet kubeadm kubectl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment