Created
September 13, 2023 04:27
-
-
Save arnos-stuff/772f0554aa7e1b840bd9318c21a8048c to your computer and use it in GitHub Desktop.
K8s isntall script for ubuntu / debian
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get update && sudo apt-get install -y apt-transport-https | |
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 -a /etc/apt/sources.list.d/kubernetes.list | |
sudo apt-get update | |
sudo apt-get install -y kubectl | |
echo 'alias k=kubectl' >> ~/.zshenv | |
echo 'compdef __start_kubectl k' >> ~/.zshrc | |
echo 'source <(kubectl completion zsh)' >> ~/.zshrc | |
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb | |
sudo dpkg -i minikube_latest_amd64.deb | |
curl -sfL https://get.rke2.io --output install-rke2.sh | |
sudo chmod +x install-rke2.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment