openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [openwhisk-deploy-kube] branch master updated: Use BACKEND_HOST to fix apigw config on Docker for Mac (#522)
Date Wed, 04 Sep 2019 06:51:59 GMT
This is an automated email from the ASF dual-hosted git repository.

chetanm pushed a commit to branch master
in repository

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 <>
AuthorDate: Wed Sep 4 02:51:54 2019 -0400

    Use BACKEND_HOST to fix apigw config on Docker for Mac (#522)
    Fixes #436.
 docs/                   | 7 ++++++-
 helm/openwhisk/templates/apigateway-pod.yaml | 5 +++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/docs/ b/docs/
index 087ec5c..0bc5e2f 100644
--- a/docs/
+++ b/docs/
@@ -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`.  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. `<UID>/<PATH>`, to invoke the api
+from outside the cluster you should use `localhost:31001` instead, e.g.
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:
                 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

View raw message