Skip to content

How to use "exec" with KubernetesClient.Classic? #887

Answered by tg123
cody-malcolm asked this question in Q&A
Discussion options

You must be logged in to vote

ConnectGetNamespacedPodExecAsync actually return a websocket, the client side should upgrade the connection, that is why you see a badrequest I guess

should use WebSocketNamespacedPodExecAsync instead. However, it is not available in net47 because of lacking of websocket APIs.
I remember the webocket related APIs were first introduced in netstandard2.1 :(

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@tg123
Comment options

@tg123
Comment options

@cody-malcolm
Comment options

@tg123
Comment options

@cody-malcolm
Comment options

Answer selected by cody-malcolm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants