In stock Kubernetes, you can apk add -U, apt-get update && apt-get install, yum update && yum install, etc. to setup additional debugging components on demand from a kube exec. Whereas in OpenShift, containers lose root privileges and run as a random user ID.
Barring bloated everything and the kitchen sink images, how are we supposed to debug our apps?
There are often trade-offs between access and security. One mechanism that OpenShift provides for the use-case you describe is the `oc debug RESOURCE` command. Use the `--as-root` or `--as-user` options to change your user.
Try `oc debug -h` for a full description with examples.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.