Kubernetes: deep dive in minikube – exploring minikube CMDLETs

Kubernetes - dashboard - showing cluster nodes

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

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

Installing 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

Kubernetes - starting minikube cluster (Kubernetes cluster)
fig : Kubernetes – starting minikube cluster (Kubernetes cluster)

As we started minikube cluster, we could verify the status of minikube cluster

minikube status

fig : Kubernetes - verifying minikube cluster status
fig : Kubernetes – verifying minikube cluster status

stopping minikube cluster

minikube stop

Kubernetes - stopping minikube cluster
fig : Kubernetes – stopping minikube cluster

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.com/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

fig : Kubernetes - deleting minikube cluster
fig : Kubernetes – deleting minikube cluster

minikube version – Get the current installed version of minikube

minikube version 

fig : Kubernetes - verifying version of minikube tool / utility
fig : Kubernetes – verifying version of minikube tool / utility

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

fig : Kubernetes - configurable properties for minikube
fig : Kubernetes – configurable properties for minikube

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

fig : Kubernetes - Dashboard
fig : Kubernetes – Dashboard

fig : Kubernetes - dashboard - showing cluster nodes
fig : Kubernetes – dashboard – showing cluster nodes

Thanks for reading !!! Please feel free to discuss / suggestions / share thoughts !!!

HAVE A GREAT TIME AHEAD !!! LIFE IS BEAUTIFUL 🙂

Prasham Sabadra

LIFE IS VERY BEAUTIFUL :) ENJOY THE WHOLE JOURNEY :) Founder of Knowledge Junction and live-beautiful-life.com, Author, Learner, Passionate Techie, avid reader. Certified Professional Workshop Facilitator / Public Speaker. Scrum Foundation Professional certificated. Motivational, Behavioral , Technical speaker. Speaks in various events including SharePoint Saturdays, Boot camps, Collages / Schools, local chapter. Can reach me for Microsoft 365, Azure, DevOps, SharePoint, Teams, Power Platform, JavaScript.

You may also like...

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: