Skip to content

Instantly share code, notes, and snippets.

@lvnilesh
Forked from inadarei/minikube-sierra.md
Created March 18, 2019 23:54
Show Gist options
  • Save lvnilesh/1d7d06a042b4ce39453c81759e94f0c6 to your computer and use it in GitHub Desktop.
Save lvnilesh/1d7d06a042b4ce39453c81759e94f0c6 to your computer and use it in GitHub Desktop.
Minikube Setup: Docker for Mac / Sierra

Prerequisite: latest Docker for Mac on MacOS Sierra

$ brew update
$ brew install --HEAD xhyve
$ 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

$ curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.18.0/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
$ curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/darwin/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/

$ minikube start --logtostderr --show-libmachine-logs --vm-driver=xhyve

If you are behind a proxy:

$ minikube start --docker-env HTTP_PROXY=$http_proxyT \
                 --docker-env HTTPS_PROXY=$https_proxy

where $http_proxy is full URI like http://proxy.example.com:8088

@lvnilesh
Copy link
Author

lvnilesh commented Mar 18, 2019

brew install hyperkit

fail --> brew install docker-machine-driver-hyperkit

curl -LO https://storage.googleapis.com/minikube/releases/latest/docker-machine-driver-hyperkit 
mv  docker-machine-driver-hyperkit /usr/local/bin/
sudo chown root:wheel  /usr/local/bin/docker-machine-driver-hyperkit
sudo chmod 4755   /usr/local/bin/docker-machine-driver-hyperkit


curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64 \
  && chmod +x minikube && mv minikube /usr/local/bin

rm -rf ~/.minikube
minikube delete    # otherwise configuration won't apply
sudo rm /var/db/dhcpd_leases # if existed
restart docker from your menu
sudo chown root:wheel /usr/local/bin/docker-machine-driver-hyperkit && sudo chmod u+s /usr/local/bin/docker-machine-driver-hyperkit

minikube config set vm-driver hyperkit
minikube config set cpus 6
minikube config set memory 32

minikube config view
minikube start -v 10
minikube start --vm-driver hyperkit -v 10

minikube dashboard # to see your cluster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment