WebSocketHandshakeException: null occured when exec into a pod #5571
Unanswered
SrihithaG29
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Your Pod doesn't seem to have access to the Kubernetes API. Make sure you're following:
You should try to TTY into the Pod and make sure everything is in place. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @manusa / Team,
We are trying to use exec functionality of Fabric8 kubernetes client.
Created a application to implement the same to exec into a pod but it fails with WebSocketHandshakeException: null,
Caused by: java.net.ProtocolException: Expected HTTP 101 response but was '403 Forbidden'\n\tat
Using 6.5.0 version kubernetes-client, kubernetes-client-api, kubernetes-httpclient-okhttp.
Please find the implementation and the stacktrace below :
When I deploy the application in a kubernetes cluster with version
kubectl version
We are not sure what exactly the issue here is as it says null, we have created a role, rolebinding and referenced it to the service account but still we could see the issue. Please help us here to understand more about the issue.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions