Accessing remote shell of a pod as root user Accessing remote shell of a pod as root user jenkins jenkins

Accessing remote shell of a pod as root user


This is an opened issue in kubernetes https://github.com/kubernetes/kubernetes/issues/30656 so I don't think it's possible in openshift either.


You can use a third-party tool kubectl-exec-user to achieve this. It does not require allowing sudo or any other privilege escalation mechanism in the container.

There is currently no built-in solution.