You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ra...@apache.org on 2018/01/09 18:04:54 UTC
[incubator-openwhisk-deploy-kube] branch master updated: bugfix for
setting WSK_HOST on minikube (#143)
This is an automated email from the ASF dual-hosted git repository.
rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-deploy-kube.git
The following commit(s) were added to refs/heads/master by this push:
new 84f6e38 bugfix for setting WSK_HOST on minikube (#143)
84f6e38 is described below
commit 84f6e38d66cdea5342cbc933a852a72ca6f719d2
Author: David Grove <dg...@users.noreply.github.com>
AuthorDate: Tue Jan 9 13:04:52 2018 -0500
bugfix for setting WSK_HOST on minikube (#143)
When minikube isn't using the none driver, the Hostname
returned from `kubectl describe nodes` may not be resolvable.
Use `minikube ip` instead to get an ip addr for WSK_HOST.
Also update the logs command that runs when the script fails
to use the name=invoker label (missed when we converted the
invoker from statefulsets to daemonsets).
---
tools/travis/build.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/travis/build.sh b/tools/travis/build.sh
index 0fb229d..9e112a2 100755
--- a/tools/travis/build.sh
+++ b/tools/travis/build.sh
@@ -158,7 +158,7 @@ popd
pushd kubernetes/ingress
WSK_PORT=$(kubectl -n openwhisk describe service nginx | grep https-api | grep NodePort| awk '{print $3}' | cut -d'/' -f1)
APIGW_PORT=$(kubectl -n openwhisk describe service apigateway | grep mgmt | grep NodePort| awk '{print $3}' | cut -d'/' -f1)
- WSK_HOST=$(kubectl describe nodes | grep Hostname: | awk '{print $2}')
+ WSK_HOST=$(minikube ip)
kubectl -n openwhisk create configmap whisk.ingress --from-literal=api_host=$WSK_HOST:$WSK_PORT --from-literal=apigw_url=http://$WSK_HOST:$APIGW_PORT
wsk property set --auth `cat ../cluster-setup/auth.guest` --apihost $WSK_HOST:$WSK_PORT
popd
@@ -277,7 +277,7 @@ if [ -z "$RESULT" ]; then
kubectl -n openwhisk logs controller-0
echo " ----------------------------- invoker logs ---------------------------"
- kubectl -n openwhisk logs invoker-0
+ kubectl -n openwhisk logs -l name=invoker
exit 1
fi
--
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>'].