-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pgadmin chart not deployable on ocp4 with non root #180
Comments
You can override the helm chart default setting with custom values.yaml file ( in attachments) : and pass it to helm install command : i.e: |
Hi there! I'm having the same issue on Openshift Container Platform v4.12.5 with the As stated above, the default Finally, I couldn't really test the proposed solution suggesting to set So running the container without any
I wonder if using the So I'm kind of stuck there, can anyone think of a solution that does not put the cluster at risk ? Thanks for any further contribution to this issue! EDIT: |
Describe the bug
I can't deploy this chart in k8s ocp4 because root is forbidden. So after some reading, i got to understand that turning the "VolumePermissions" flag on resolves this issue, but unfortunately it doesn't, namely because the "group:user" is hard-coded in the chart and so I'm bound/obliged to use the same "550" as in the values. Question: Is there a reason to hard-code this value instead of using e.g environment variables ?
Version of Helm and Kubernetes:
❯ helm version
version.BuildInfo{Version:"v3.8.0", GitCommit:"d14138609b01886f544b2025f5000351c9eb092e", GitTreeState:"clean", GoVersion:"go1.17.5"}
K8s Version: 1.21
Which chart:
https://github.com/rowanruseler/helm-charts/tree/master/charts/pgadmin4
What happened:
Pod won't create due to reason in bug description
What you expected to happen:
pod should run and i should be able to use pgadmin on browser
How to reproduce it (as minimally and precisely as possible):
You can only reproduce this if you're running on my specific OCP4 cluster which generates such error:
pods "pg-pgadmin4-6d887d69db-" is forbidden: unable to validate against any security context constraint: [provider "anyuid": Forbidden: not usable by user or serviceaccount, provider "check-mk": Forbidden: not usable by user or serviceaccount, provider restricted: .spec.securityContext.fsGroup: Invalid value: []int64{5050}: 5050 is not an allowed group, spec.initContainers[0].securityContext.runAsUser: Invalid value: 0: must be in the ranges: [1003930000, 1003939999], spec.containers[0].securityContext.runAsUser: Invalid value: 5050: must be in the ranges: [1003930000, 1003939999], provider "nonroot": Forbidden: not usable by user or serviceaccount, provider "noobaa": Forbidden: not usable by user or serviceaccount, provider "noobaa-endpoint": Forbidden: not usable by user or serviceaccount, provid
Anything else we need to know:
that would be all for now, please do lemme know if further input is required !
The text was updated successfully, but these errors were encountered: