Replies: 1 comment 3 replies
-
Kubernetes API is not using websockets, it uses JSON/HTTP. Pod logs, however, are served via websockets |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
I have a user with cluster-admin role in my cluster, when I want to get websocket from pods list api in watch mode, I get error 403, but as you know cluster-admin user has a full access.
I've checked my permission using oc command:
this is the API i'm working with:
I've tried to use this api without websocket and I could get the correct response without any error, my request was like that:
Also I wanna mention that my token in websocket request is correct, I get the websocket from other kubernetes apis such as pod logs with this cluster-admin without problem, but I have problem in this particular api.
In addition I've enabled debug logging mode in api server but there wasn't any helpful log for my request.
Version
4.11.0-0.okd-2022-08-20-022919
4.12.0-0.okd-2023-04-16-041331
How reproducible
Log bundle
Beta Was this translation helpful? Give feedback.
All reactions