Step 1 – Start your cluster
From a terminal with administrator access (but not logged in as root), run:
$ minikube start –driver=virtualbox
If minikube fails to start, see the drivers page for help setting up a compatible container or virtual-machine manager.
- https://minikube.sigs.k8s.io/docs/drivers/
Step 2 – Interact with your cluster
If you already have kubectl installed, you can now use it to access your shiny new cluster:
$ kubectl get po -A
Alternatively, minikube can download the appropriate version of kubectl and you should be able to use it like this:
$ minikube kubectl — get po -A
You can also make your life easier by adding the following to your shell config:
alias kubectl=”minikube kubectl –“
Step 3 – Interact with your cluster
Initially, some services such as the storage-provisioner, may not yet be in a Running state. This is a normal condition during cluster bring-up, and will resolve itself momentarily. For additional insight into your cluster state, minikube bundles the Kubernetes Dashboard, allowing you to get easily acclimated to your new environment:
$ minikube dashboard
Step 4 – Manage your cluster
Pause Kubernetes without impacting deployed applications:
$ minikube pause
Unpause a paused instance:
$ minikube unpause
Halt the cluster:
$ minikube stop
Change the default memory limit (requires a restart):
$ minikube config set memory 9001
Browse the catalog of easily installed Kubernetes services:
$ minikube addons list
Create a second cluster running an older Kubernetes release:
$ minikube start -p aged --kubernetes-version=v1.16.1
Delete all of the minikube clusters:
$ minikube delete --all
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND