I run:
kubectl create -f pod3.yaml
then run:
kubectl get pods
The status of pod3 is Completed.
I run:
kubectl exec -it pod3 --container tf bash
get this error:
error: cannot exec into a container in a completed pod; current phase is Succeeded
How can I keep the status of pod3 running and enter the container to run python script?
Hi, I want to mount a directory and enter the container to run python script. Below are the yaml of a pod3:
I run:
kubectl create -f pod3.yaml
then run:kubectl get pods
The status of pod3 is Completed. I run:kubectl exec -it pod3 --container tf bash
get this error:error: cannot exec into a container in a completed pod; current phase is Succeeded
How can I keep the status of pod3 running and enter the container to run python script?