Команда exec exec exec

kubectl exec pod_name -- sh -c "some_shell_code_run_inside_pod"
Armandres