I am running the command:
kubectl run testbox -it --rm --restart=Never --image=python:buster -- python3
which will launch a python session and then I input exit() to quit the session. But the session hangs forever there. If I do kubectl get po testbox I can see the pod is already completed.
Then if I hit enter key the console will then output:
E0826 22:43:38.790348 1551782 v2.go:105] EOF
I noticed that this will not happen if I set --restart=Always. Not sure if it is expected?
Thanks!