Install Kubernetes Locally(minikube)
Sarthak 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
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