Last active
November 19, 2022 16:17
-
-
Save hrittikhere/797c5c57a907ee4403b1db0b7af50628 to your computer and use it in GitHub Desktop.
Pre Flight kubernetes (Ubuntu)
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/sh | |
# Update Base System | |
sudo apt update -y | |
sudo apt upgrade -y | |
# Install Docker | |
echo -e "\e[1;31m Installing Docker \e[0m" | |
curl -fsSL https://get.docker.com -o get-docker.sh | |
sh get-docker.sh | |
sudo usermod -aG docker $USER | |
rm get-docker.sh | |
# Install VirtualBox | |
echo -e "\e[1;31m Installing VirtualBox \e[0m" | |
sudo apt install virtualbox -y | |
# Install Vagrant | |
echo -e "\e[1;31m Installing Vagarnat \e[0m" | |
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add - | |
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | |
sudo apt-get update && sudo apt-get install vagrant | |
# Kubectl | |
echo -e "\e[1;31m Installing Kubectl \e[0m" | |
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" | |
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl | |
rm kubectl | |
mkdir -p $HOME/.kube | |
# Helm | |
echo -e "\e[1;31m Installing Helm \e[0m" | |
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl https://gist.githubusercontent.com/hrittikhere/797c5c57a907ee4403b1db0b7af50628/raw/61fe9e00a66befd9fc84ad5e075e0de5a828132c/install.sh | bash
Copy and paste the following command on your ubuntu terminal ⬆️