This is an automated email from the ASF dual-hosted git repository. chetanm pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/openwhisk-deploy-kube.git
The following commit(s) were added to refs/heads/master by this push: new 9980ad5 Use BACKEND_HOST to fix apigw config on Docker for Mac (#522) 9980ad5 is described below commit 9980ad5b0b82dcccb8f6e4049f77c452d2418ca9 Author: David Grove <dgrove-...@users.noreply.github.com> AuthorDate: Wed Sep 4 02:51:54 2019 -0400 Use BACKEND_HOST to fix apigw config on Docker for Mac (#522) Fixes #436. --- docs/k8s-docker-for-mac.md | 7 ++++++- helm/openwhisk/templates/apigateway-pod.yaml | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/k8s-docker-for-mac.md b/docs/k8s-docker-for-mac.md index 087ec5c..0bc5e2f 100644 --- a/docs/k8s-docker-for-mac.md +++ b/docs/k8s-docker-for-mac.md @@ -95,4 +95,9 @@ Therefore you must use different host names to connect to OpenWhisk from outside the cluster (with the `wsk` cli) and from inside the cluster (in `mycluster.yaml`). Continuing the example from above, when setting the `--apihost` for the `wsk` cli, you would use -`localhost:31001`. +`localhost:31001`. This networking difference also shows up when +listing apis via `wsk -i api list`. The listed URLs will show the +cluster-internal apihost, +e.g. `https://192.168.65.3:31001/api/<UID>/<PATH>`, to invoke the api +from outside the cluster you should use `localhost:31001` instead, e.g. +`https://localhost:31001/api/<UID>/<PATH>`. diff --git a/helm/openwhisk/templates/apigateway-pod.yaml b/helm/openwhisk/templates/apigateway-pod.yaml index deb5988..13b3ac3 100644 --- a/helm/openwhisk/templates/apigateway-pod.yaml +++ b/helm/openwhisk/templates/apigateway-pod.yaml @@ -66,3 +66,8 @@ spec: configMapKeyRef: name: {{ .Release.Name }}-whisk.config key: whisk_api_host_url + - name: "BACKEND_HOST" + valueFrom: + configMapKeyRef: + name: {{ .Release.Name }}-whisk.config + key: whisk_api_host_url