godaddy / godaddy/kubernetes-client
How to exec and monitor long time command in pod?
- Dominant language
- JavaScript
- Stars
- 963
- Forks
- 189
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I'd like to execute long time command in the pod and it'll produce large logs. Can i just use https://github.com/godaddy/kubernetes-client/blob/master/docs/1.13/PodExecOptions.md ? For short time command, it's ok to get the response quickly with above API. But for long time command, how can i check if the command is complete and get the result after that?
And what's the difference between api.v1.namespaces(namespace).pods(name).exec.get and api.v1.namespaces(namespace).pods(name).exec.post if i just want to execute command in the pod?
Thanks very much for the helps. It'd be great if there's an example.
Contributor guide
Research direction
Start with docs/1.13/PodExecOptions.md and the pod exec.get and exec.post entry points named in the issue. Determine how long-running commands, completion checks, large logs, and the GET-versus-POST distinction are handled, then document an example that answers those questions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, kubernetes, nodejs
- Domain
- api, documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100