You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/08/29 20:28:17 UTC
[GitHub] philwinder opened a new issue #291: How should I connect to nginx
apiserver gateway using kubectl proxy?
philwinder opened a new issue #291: How should I connect to nginx apiserver gateway using kubectl proxy?
URL: https://github.com/apache/incubator-openwhisk-deploy-kube/issues/291
Hi there,
I'm struggling to connect to the nginx apiserver using `kubectl proxy ...`.
It seems that it's struggling to proxy the https traffic. I'm not sure if the proxy command just doesn't proxy https traffic, or if I'm doing something wrong. Can you recommend how to do this? Thanks.
For example:
```bash
$ kubectl get svc -n openwhisk nginx
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
nginx NodePort 172.20.242.181 <none> 80:32040/TCP,443:31005/TCP,8443:31201/TCP 34m
$ kubectl proxy --port=31005 &
[1] 86814
Starting to serve on 127.0.0.1:31005
$curl localhost:31005
{
"paths": [
"/api",
"/api/v1",
"/apis",
"/apis/",
...
$ curl https://localhost:31005
curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
$ wsk property set --apihost localhost:31005
ok: whisk API host set to localhost:31005
$ wsk --insecure action get /whisk.system/samples/greeting
error: Unable to get action 'samples/greeting': Get https://localhost:31005/api/v1/namespaces/whisk.system/actions/samples/greeting?code=false: http: server gave HTTP response to HTTPS client
Run 'wsk --help' for usage.
```
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services