kubernetes secure websocket wss connection disconnected with code 1002

8/14/2019

I'm successfully able to make web socket connection in Kubernets using insecure channel ws

 "ws://127.0.0.1:8080/api/v1/namespaces/default/pods/busybox/exec?stdout=1&stdin=1&stderr=1&tty=1&container=busybox&command=%2Fbin%2Fsh&command=-i&access_token=eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJp";

When i try to connect with Secure Websocket (wss) It throws me error

 "wss://127.0.0.1:6443/api/v1/namespaces/default/pods/busybox/exec?stdout=1&stdin=1&stderr=1&tty=1&container=busybox&command=%2Fbin%2Fsh&command=-i&access_token=eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJp";

tHe reason for disconnect as follow

reason: Invalid status code received: 403 Status line: HTTP/1.1 403 Forbidden
code 1002
remote false

Any Help Appreciated

-- anish
amazon-web-services
docker
gcloud
kubernetes

0 Answers