kubectl exec will wait for a command's background job to finish - when exec to pod on containerd · Issue #119992 · kubernetes/kubernetes
What happened? When running kubectl exec with containerd runtime, the command will be waited until it has completed to return result to client. For example, kubectl exec <podname> -c </podname>