MiniKube as Docker Desktop replacement¶
Important
This step is not executed as part of the tutorial it's only a reciepes how to replace Docker for Desktop
Minikube is local Kubernetes, focusing on making it easy to learn and develop for Kubernetes.
All you need is Docker (or similarly compatible) container or a Virtual Machine environment
- Well documented
- Can use many container Runtime (get rid of Docker !)
https://minikube.sigs.k8s.io/docs/start/
Install Docker CLI¶
Install Minikube¶
Install Matrix
Refer to the Installation Matrix to get the right command, like installing on Arm64 CPU.
Start Docker with HyperKit (https://minikube.sigs.k8s.io/docs/drivers/hyperkit/)¶
Point Docker CLI to Docker Engine inside Minikube VM¶
Show Cluster info
Kubernetes control plane is running at https://192.168.64.2:8443
CoreDNS is running at https://192.168.64.2:8443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
- Running pods
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system coredns-565d847f94-2mx8q 1/1 Running 0 109s
kube-system etcd-minikube 1/1 Running 0 2m2s
kube-system kube-apiserver-minikube 1/1 Running 0 2m2s
kube-system kube-controller-manager-minikube 1/1 Running 0 2m2s
kube-system kube-proxy-rcklg 1/1 Running 0 109s
kube-system kube-scheduler-minikube 1/1 Running 0 2m2s
kube-system storage-provisioner 1/1 Running 0 2m1s
- All k8s contexts
We can check the current Kubernetes context
using kubectl
: