Install Kubernetes Locally(minikube)

Sarthak TyagiSarthak Tyagi
1 min read

update the system and upgrade it

sudo apt-get update && sudo apt-get upgrade

Install Kubectl in your PC

 curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
 curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256"
 echo "$(cat kubectl.sha256)  kubectl" | sha256sum --check
 sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
 kubectl version --client

Install Minikube

curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
minikube version

Install Docker and Start Minikube

sudo apt-get install docker.io
sudo chown $USER /var/run/docker.sock
sudo apt-get update && sudo apt-get upgrade
minikube start --driver=docker
minikube config set driver docker
minikube status

Check it is Installed or Not Yet

kubectl get nodes

Everything is Done

Just Check Docs

https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/#install-kubectl-binary-with-curl-on-linux

https://minikube.sigs.k8s.io/docs/start/

0
Subscribe to my newsletter

Read articles from Sarthak Tyagi directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Sarthak Tyagi
Sarthak Tyagi