This Method will replace Docker Desktop with hyperkit + minikube. From this article
-
Installing hyperkit and minikube
brew install hyperkit brew install minikube
-
Start minikube
# Optional: Set system resources minikube config set cpu <whatever> minikube config set memory <whatever> # Start minikube minikube start
A Specific Example:
# Start a cluster with 2 nodes in the driver of your choice: minikube start --nodes 2 --kubernetes-version=v1.22.2
-
Deploy locally created Docker container images
# To use `kubectl deploy` to deploy locally created Docker container images: eval $(minikube docker-env)
-
Interact with your cluster
# If you already have kubectl installed, you can now use it to access your shiny new cluster: kubectl get po -A # Alternatively, minikube can download the appropriate version of kubectl and you should be able to use it like this: minikube kubectl -- get po -A # You can also make your life easier by adding the following to your shell config: alias mk="minikube kubectl --" # For additional insight into your cluster state, minikube bundles the Kubernetes Dashboard, allowing you to get easily acclimated to your new environment: minikube dashboard
-
Stop minikube
minikube stop
Extra
- See other useful minikube commands