Created
September 9, 2023 00:04
-
-
Save arnos-stuff/50dfd3f9978d9eb95120560430f1c316 to your computer and use it in GitHub Desktop.
A botched k8s installer for an ubuntu VM node
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