This article shows how to deploy minikube cluster on ubuntu machine. First we have to install virtual box followed by kubelet and minikube binaries. Use the command "minikube start --vm-driver virtualbox" to create a minikube cluster on the virtualbox.
1) First install Install VirtualBox on ubuntu
sudo apt-get install -y virtualbox
2) Install kubelet on ubuntu:
curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.5.1/bin/linux/amd64/kubectl
Change Permission of kubectl binary
chmod +x kubectl
move kubectl binary to /usr/local/bin
sudo mv kubectl /usr/local/bin/kubectl
3) Download and install minikube binary
curl -Lo minikube https://github.com/kubernetes/minikube/releases/download/v1.9.2/minikube-linux-amd64
Change Permission of minikube binary
chmod +x minikube
move minikube binary to /usr/local/bin/
sudo mv minikube /usr/local/bin/
4) Deploy minikube cluster
minikube start --vm-driver virtualbox
Show minikube cluster IP
minikube ip
kubectl get pods --all-namespaces
kubectl config view
minikube addons list
5) Stop Minikube cluster
minikube stop
minikube delete
6) How to Check logs
Minikube Logs
minikube logs
7) How to open Dashboard
minikube dashboard
8) How to check version
minikube version
No comments:
Post a Comment