azure aks – AKS : kubectl exec & kubectl log exits in between while the process is running in the container still
I am running the following kubectl exec & kubectl logs cmd at the same time on two different windows command prompt
kubectl exec ${pod} containername -n namespace -- bash -c "cd somebatch.ksh > /proc/1/fd/1 2>&1"
kubectl logs ${pod} containername -n namespace
both gets exited from the windows command prompt in between while the process is running in the container still.
If I run the kubectl logs cmd again, I could see the running logs
kubectl logs ${pod} containername -n namespace
What should I do to keep the kubectl exec & kubectl log commands running without exiting.
Read more here: Source link