How to Install minikube in local mac machine?
- Install hyperkit
- git clone https://github.com/moby/hyperkit
- cd hyperkit
- Make
- 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
$ 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
- Download kubectl
- curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/darwin/amd64/kubectl
- chmod +x ./kubectl
- sudo mv ./kubectl /usr/local/bin/kubectl
- Or use brew
- brew install kubectl
- Install xhive driver
- brew install docker-machine-driver-xhyve
- sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
- sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
- Install Minikube
- brew cask install minikube
- To start minikube run the command “minikube start”
- To set the minikube context,
- kubectl config use-context minikube
- To know minikube ip,
- minikube ip
- To know minikube dashboar url
- minikube dashboard --url
- Browse the URL in your browser to get to see the minikube dashboard
Ref:
Comments
Post a Comment