Minikube
Architecture
Start Minikube
--kubernetes-version
- deploy a specific Kubernetes version, by default, deploy the latest version
--driver
- VM or container to host Minikube
- use a specific driver
--container-runtime
- Host containers
- container runtime to be used, one of docker, cri-o, containerd
minikube start
Minikube Status
Access Service
# access external service
# minikube service [serviceName]
minikube service mongo-express-service
Kubernetes Dashboard
Login Minikube
Close Minkube
Close Minkube
Option 1: Minikube Container on Docker Desktop
# Install Minikube
https://minikube.sigs.k8s.io/docs/start/
# Start Docker Desktop
# Start Minikube
minikube start
# Point to inside of Minikube container
eval $(minikube docker-env)
# Close Minikube
minikube delete --all
Option 2: Hyperkit+Minikube+Kubernetes CLI+Docker CLI
# Install hyperkit
# lightweight virtual machines and container deployment
brew install hyperkit
# Install Docker CLI
brew install docker
# Install Docker-compose
brew install docker-compose
# Install Kubernetes CLI
brew install kubectl
# Install Minikube and Docker Daemon
brew install minikube
# Start Kubernetes Cluster
minikube start --kubernetes-version=v1.22.1 --driver=hyperkit --container-runtime=docker
# Point to Minikube container
eval $(minikube docker-env) # implment on each working terminal of using minikube
# Close Minikube
minikube delete --all
Option 3: Hyperkit+Minikube+Kubernetes CLI+Podman CLI
# Install hyperkit
# lightweight virtual machines and container deployment
brew install hyperkit
# Install podman
brew install podman
# Install podman-compose
pip3 install podman-compose
# Install Kubernetes CLI
brew install kubectl
# Install Minikube and Docker Daemon
brew install minikube
# Start podman
podman machine init
podman machine start
# Start Minikube
minikube start
Reference