Hi, Let us understand how to install minikube and make use of it to learn
helm, as you all know, helm is a package manager for given its application, I need a kubernetes
environment to learn and test, given its application using helm.
I can have my own cluster.
or I can go ahead and do the installation of minikube so that the entire environment for kubernetes
will be available in a single click and Minikube can be installed in any of the operating systems
like Linux, MacOS or Windows
Here I am going to demonstrate how to do the installation of Minikube and start using helm with minikube.
Minikube leverage is the virtualization environment.
In our case, it will be using the virtual box and the detailed steps of how to do the installation
of minikube is available over here and installation is very simple where
It needs to have the following requirements.
That is in terms of the hyper V and the virtualization should be enabled within the laptop and almost
all the laptops nowadays comes with this particular feature.
If it is not enabled, that needs to be enabled within the BIOS and there are a lot of instructions
available over the Google.
And along with this, we need to have a virtualization environment like the virtual box or VM ware
In my case, I already do have the virtual box and I can download the installation for
minikube from this specific location.
The installation can be downloaded as a executable, so once it is downloaded, I can go ahead
and do the installation, by executing the executable automatically
It's going to do all the requirement check as well as the configuration changes. The requirement check
It's going to check whether the hyper V is enabled and virtual box is installed or not and virtual
box installation is also very simple.
In a single flake, I can execute the executable and get the installation done. Once the installation
is done I should be in a position to get the status about the minikube.
I'm going to work in this specific location.
Let me go ahead and open the power shell. I can directly
Open the power shell by clicking shift and right clicking.
I do have the option or otherwise I
can open the power shell in any location and get into that specific directory.
Always I prefer to work with power shell
the reason because few of the commands or the script
Execution works better in power shell rather than in the command prompt.
And once the installation is done within the environmental variables
power of advanced settings, environmental variables
I can check the path.
So it's going to add the location where minikube is installed as a part of the path
So it should understand the command minikube from any location, if it is not, you can go ahead and
add them. I can provide the command minikube.
So once it provides the help option, that means minikube installation is good
I can go ahead and check the status about the minikube, minikube status
So it's in the stopped state, so automatically what it will do
It will start the required components, that is API server, Kubelet, Kube configurations, everything
will be done in a single system so that I can use that specific single system for all the needs of kubernetes
So all the components required for kubernetes to run will be executed in a single system.
And that can be used for trial or test purpose.
Now I am going to start the minikube
I need to provide what driver to use and in my case I have installed a virtual box.
So I am going to use virtual box as the driver.
I will give the command.
minikube start driver=virtualbox
So it will create a VM with in the virtual box.
I don't need to worry about working on that specific VM into the virtual box automatically, it's going
to create the virtual box
Download the required image and get that image started.
First time when it is downloading, it's going to take more time.
And once the images available, next time, it's going to just start the virtual box.
So it should get started faster.
So the minikube command automatically, it will configure the required components in terms of downloading
the right virtual box images and preparing the kubernetes and docker within it.
Once the download is done, it's going to enable all the required components in terms of the dashboards,
storage class provisioner and it's going to configure the kubectl so that it can work with minikube.
Now I do have the installation good.
Now let me test whether the kubectl is configured properly or not by issuing the command kubectl
get all that's going to provide me the required service that is running within the kubernetes.
And this confirms the kubectl is configured.
As well as minikube is also working fine.
I can go ahead and deploy whatever the components that are required.
And one other important component that will be very useful for many Kube understanding is dashboard.
That's going to provide the bigger picture of what are all the components running within the kubernetes environment.
I can issue the command minikube dashboard.
So that's going to provide me the dashboard on the minikube on what are all the nodes running and
what are the volumes and different workloads in terms of parts, jobs, deployments, daemon sets,
everything will be available in a single dashboard.
Say, for example, within nodes
I will be having only one node
And details on what is the memory, CPU utilization other details will be available.
The same way I can check
What are all the pods available
I will be making use of this specific dashboard to understand the different components that got deployed using helm.
In a quick summary we learnt about how to do the installation of minikube and make it ready so that
we can use it with helm to try out our chart deployments.