To put in a simplest way, Minikube is a compact version of Kubernetes. Minikube -> Mini Kubernetes
Instead of having Master – Slave nodes set up in Kubernetes, Minikube will have all components installed in one single node cluster.
Due to limitation of your infrastructure and resources or if you just want to trial out your Kubernetes clusters, Minikube is the way to go.
Minikube will have Kubernetes Features such as –
– Config Maps, Secrets
– Container Runtime : Docker
– CNI for pod networking
– Ingress
– Dashboard
Below is a set up guide for Minikube on MX Linux.
$ uname -a
Linux mx 5.10.0-5mx-amd64 #1 SMP Debian 5.10.26-1~mx19+1 (2021-04-01) x86_64 GNU/Linux
1. Update Linux
Sudo apt update
2. Install KVM ( any kind of Hypervisor, or you can also install on docker)
Link on how to install KVM
https://tutorialforlinux.com/2020/05/19/step-by-step-kvm-mx-linux-19-installation-guide/4/
3. Download and install Minikube (Minikube has Kubectl dependency, so you will need to install kubectl first)
Minikube reference : https://minikube.sigs.k8s.io/docs/
4. Install Kubectl command line
https://kubernetes.io/docs/tasks/tools/
After all components are installed, you can now start Minikube ..
Simply use the command : minikube start
or just type in the command line minikube and it will give you the list of available commands.
To run minikube in hypervisor –
minikube start –vm-driver=kvm
In my case, KVM or any hypervisor you are going to use.
List of available drivers –
https://minikube.sigs.k8s.io/docs/drivers/
- Docker – container-based (preferred)
- KVM2 – VM-based (preferred)
- VirtualBox – VM
- None – bare-metal
- Podman – container (experimental)
- SSH – remote ssh
Useful commands –
kubectl cluster-info
kubectl config view
kubectl get nodes
kubectl get pod -o wide to get more information of the pods
kubectl version
minikube status
minikube dashboard –url to access Kubernetes dashboard
You will need minikube commands only at the beginning. The rest is the same as using normal kubernetes, you just need to use kubectl command.
Regards
Teza