How to Install minikube in local mac machine?

  1. Install hyperkit
    1. git clone https://github.com/moby/hyperkit
    2. cd hyperkit
    3. Make
  2. To enable qcow support in the block backend an OCaml OPAM development environment is required with the qcow module available. A suitable environment can be setup by installing opam and libev via brew and using opam to install the appropriate libraries:
$ brew install opam libev
$ opam init
$ eval `opam config env`
$ opam install uri qcow.0.10.3 conduit.1.0.0 lwt.3.1.0 qcow-tool mirage-block-unix.2.9.0 conf-libev logs fmt mirage-unix prometheus-app
  1. Download kubectl
    1. curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/darwin/amd64/kubectl
    2. chmod +x ./kubectl
    3. sudo mv ./kubectl /usr/local/bin/kubectl
    4. Or use brew
      1. brew install kubectl
  2. Install xhive driver
    1. brew install docker-machine-driver-xhyve
    2. sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
    3. sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
  3. Install Minikube
    1. brew cask install minikube
    2. To start minikube run the command “minikube start”
  4. To set the minikube context,
    1. kubectl config use-context minikube
  5. To know minikube ip,
    1. minikube ip
  6. To know minikube dashboar url
    1. minikube dashboard --url
    2. Browse the URL in your browser to get to see the minikube dashboard

Ref:



Comments