Kubernetes: exec via WebSocket API; close stdin?

10/8/2018

Within an already established WebSocket connection to the /exec API endpoint of the Kubernetes API server, is it possible to somehow close stdin without completely closing the WebSocket connection? This would be required for piping data into a remotely executed command and then saying EOF.

I tried sending [0] (no data on stdin), but that didn't work. I can't find anything related to that in the source code as well.

-- Alfred Krohmer
kubernetes

0 Answers