Kubernetes: deep dive in minikube – exploring minikube CMDLETs

Hi All,
Greetings for the day!!!
In this article we will deep dive into minikube utility and will discuss few frequently used minikube CMDLETs
If you do not know what is minikube, please refer our below articles on minikube
- Kubernetes simplifying: Setting up local environment – creating Kubernetes cluster locally (helps in Interview Preparation) – Kubernetes for beginners
- Kubernetes – Setting up kubernetes cluster for development on Windows 10 box using minikube
minikube utility
- minikube is light weight utility which creates a Virtual Machine (VM) on our local environment and creates local Kubernetes cluster with single node
- We use minikube for learning and development purpose
- minikube CLI is available which provides basic commands like start, stop, delete, status of cluster and so on
- minikube runs latest stable release of kubernetes
Prerequisites for minikube
- Hyper-V enabled for Windows box if we are installing minikube on Windows box
- kubectl utility – we have detailed article on kubectl utility – Kubernetes – kubectl command line utility
Installing minikube
- Installing minikube on Linux / Ubuntu box : we have detailed article – Kubernetes simplifying: Setting up local environment – creating Kubernetes cluster locally (helps in Interview Preparation) – Kubernetes for beginners
- Installing minikube on Windows box – Kubernetes – Setting up kubernetes cluster for development on Windows 10 box using minikube
minikube CMDLETS
Starting minikube cluster. Once we have successfuly installation of minikube, we can start default culster which minikube utility setups
minikube start
- This CMDLET will start the Kubernetes cluster
As we started minikube cluster, we could verify the status of minikube cluster
minikube status
stopping minikube cluster
minikube stop
Deleting existing minikube cluster – While development sometime we need to delete the existing cluster and start again. For example we have an error – “Unable to restart cluster, will reset it: apiserver health: apiserver healthz never reported healthy: cluster wait timed out during healthz check” to resolve this error we need to delete existing cluster and need to start agaiin – https://knowledge-junction.in/2022/07/27/kubernetes-starting-minikube-on-windows-10-box-resolving-error-unable-to-restart-cluster-will-reset-it-apiserver-health-apiserver-healthz-never-reported-healthy-cluster-wait-timed-out-durin/
minikube delete
minikube version – Get the current installed version of minikube
minikube version
Configuring our cluster with minikube
- We could do our local cluster settings with minikube config CMDLET
- We could configure persistent configuration values
- minikube config modifies minikube config files using subcommands like “minikube config set driver kvm2”
- Below image shows the configurable fields
minikube config
Dashboard to view the Kubernetes cluster details – Kubernetes dashboard UI
- The Dashboard is a web-based Kubernetes user interface
- We can use dashboard UI
- Dashboard to deploy containerized applications to a Kubernetes cluster
- Troubleshoot containerized application
- To manage our cluster resources
- To get details of our application running in our cluster
- To manage (create / modify) of Kubernetes cluster objects – Deployments, Jobs, DaemonSets etc
- To know error if any
minikube dashboard
Thanks for reading !!! Please feel free to discuss / suggestions / share thoughts !!!
HAVE A GREAT TIME AHEAD !!! LIFE IS BEAUTIFUL 🙂
You must be logged in to post a comment.