commit | 147d5493e3eae887705b4f65dba800d204c83192 | [log] [tgz] |
---|---|---|
author | David Grove <dgrove-oss@users.noreply.github.com> | Thu Jan 11 11:05:21 2018 -0500 |
committer | rodric rabbah <rodric@gmail.com> | Thu Jan 11 11:05:21 2018 -0500 |
tree | 31241885074d6867a85c131afe7289c61e42d8d7 | |
parent | 9479a996515d9ba7a76c198db2c5db19e3faa9db [diff] |
fix Travis CI regression introduced by 84f6e38d. (#150) Only use `minikube ip` to get WSK_HOST when `kubectl describe nodes` returns "minikube" as the hostname. When running with the none driver (like in travis CI), minikube ip returns local host, which works for the wsk CLI externally, but not for the wsk CLI when invoked from a Job running within minikube. Regression was not detected during PR testing because the fix of 63f96636 to check error conditions in the job's init.sh has not been merged to master when 84f6e38d was tested.
This repository can be used to deploy OpenWhisk to a Kubernetes cluster.
Several requirements must be met for OpenWhisk to deploy on Kubernetes.
Kubernetes
OpenWhisk
For local development and testing, we recommend using Minikube version 0.23+ with the docker network in promiscuous mode. Our Travis CI testing uses Minikube 0.23.0. Take a look at these instructions.
You can also provision a Kubernetes cluster from a cloud provider, subject to the cluster meeting the requirements above.
The first time you deploy OpenWhisk on Kubernetes, we recommend following the steps below manually so you can inspect the results and debug your setup. After you are confident that OpenWhisk deploys smoothly on your cluster, you might find it useful to drive your deployments using the script build.sh that we use to deploy OpenWhisk on Kubernetes for our Travis CI testing.
Do one of the following:
To deploy OpenWhisk on Kubernetes, you must deploy its components in an order that respects their dependencies. Detailed instructions and the supporting configuration files can be found in the kubernetes directory tree. Follow the instructions for each step in order.
Your OpenWhisk installation should now be usable. You can test it by following these instructions to define and invoke a sample OpenWhisk action in your favorite programming language.
At some point there might be a need to cleanup the Kubernetes environment. For this, we want to delete all the OpenWhisk deployments, services, jobs and whatever else might be there. This is easily accomplished by deleting the openwhisk
namespace:
kubectl delete namespace openwhisk
Report bugs, ask questions and request features here on GitHub.
You can also join our slack channel and chat with developers. To get access to our slack channel, request an invite here.