Open criztovyl opened 2 years ago
containerUid is hardcoded set to 1000 so that the container runs as non-root https://github.com/omrikiei/ktunnel/commit/05b502b6ce0ba2388674fc935e392239081b92b9
A simple way to run the container as non-root, but without running into this issue, would be to specify the non-root user via Dockerfile and not via "RunAsUser" e.g. like this https://github.com/gms1/ktunnel/blob/develop/Dockerfile
When using ktunnel with OpenShift, for me ktunnel expose does not reliably work because the Deployment created has
RunAsUser
, which OCP does not allow unless you adjust it's security configuration.OpenShift runs containers with non-root user by default, and the Deployment works fine when I manually remove the
RunAsUser
.So far the bug, I am open to providing a PR, but maybe you already have a solution in mind?