Skip to content

Instantly share code, notes, and snippets.

@hrittikhere
Last active November 19, 2022 16:17
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hrittikhere/797c5c57a907ee4403b1db0b7af50628 to your computer and use it in GitHub Desktop.
Save hrittikhere/797c5c57a907ee4403b1db0b7af50628 to your computer and use it in GitHub Desktop.
Pre Flight kubernetes (Ubuntu)
#!/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
@hrittikhere
Copy link
Author

hrittikhere commented Jan 14, 2022

curl https://gist.githubusercontent.com/hrittikhere/797c5c57a907ee4403b1db0b7af50628/raw/61fe9e00a66befd9fc84ad5e075e0de5a828132c/install.sh | bash

Copy and paste the following command on your ubuntu terminal ⬆️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment