Logo

Armand.nz

Home / About / Linkedin / Github

Kubernetes Cluster on MacOS using hyperkit + minikube

#kubernetes #macos #hyperkit #minikube |

This Method will replace Docker Desktop with hyperkit + minikube. From this article

  1. Installing hyperkit and minikube

     brew install hyperkit
     brew install minikube
    
  2. 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
    
  3. Deploy locally created Docker container images

     # To use `kubectl deploy` to deploy locally created Docker container images:
     eval $(minikube docker-env)
    
  4. 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
    
  5. Stop minikube

     minikube stop
    

Extra

comments powered byDisqus

Copyright © Armand