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
Code language: JavaScript (javascript)
Browse the catalog of easily installed Kubernetes services:
$ minikube addons list
Code language: PHP (php)
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 --allCode language: JavaScript (javascript)I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services — all in one place.
Explore Hospitals