dgrove-oss closed pull request #176: add macos notes for minikube URL: https://github.com/apache/incubator-openwhisk-deploy-kube/pull/176
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/docs/setting_up_minikube/README.md b/docs/setting_up_minikube/README.md index eb6c330..9ba6b0a 100644 --- a/docs/setting_up_minikube/README.md +++ b/docs/setting_up_minikube/README.md @@ -2,6 +2,34 @@ First, download and install Minikube following these [instructions](https://github.com/kubernetes/minikube). +## Setup MacOS for local minikube +We recommend using the same versions we use in Travis, using asdf makes it very easy to select the version of minikube and kubectl + +### Install asdf +``` +brew install asdf +``` +### Setup asdf in terminal +Edit your `~/.profile` or equivalent +``` +[ -s "/usr/local/opt/asdf/asdf.sh" ] && . /usr/local/opt/asdf/asdf.sh +``` + +### Add minikune and kubectl plugins +``` +asdf plugin-add kubectl +asdf plugin-add minikube +``` + +### Install asdf plugin [email protected] and [email protected] +``` +asdf install kubectl 1.7.4 +asdf global kubectl 1.7.4 +asdf install minikube 0.23.0 +asdf global minikube 0.23.0 +``` + +## Create the minikube VM You will want at least 4GB of memory and 2 CPUs for Minikube to run OpenWhisk. If you have a larger machine, you may want to provision more (especially more memory). @@ -10,6 +38,7 @@ Start Minikube with: minikube start --cpus 2 --memory 4096 --kubernetes-version=v1.7.4 ``` +## Setup Docker network in promiscuous mode Put the docker network in promiscuous mode. ``` minikube ssh -- sudo ip link set docker0 promisc on ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
