-
Notifications
You must be signed in to change notification settings - Fork 64
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
helm chart is not picking security context value passed in values.yml #159
Comments
What happens if you set the Try these values. podSecurityContext:
seccompProfile:
type: RuntimeDefault
fsGroup: 5984
fsGroupChangePolicy: "Always"
containerSecurityContext:
runAsNonRoot: true
runAsUser: 5984
runAsGroup: 5984
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL |
yes, we are using security as you mentioned, but we need to add these value in values.yaml file
when we add here , helm deployment doesnt pick the value |
Hi, please let me know if i can add these options in
|
If I'm understanding what you are asking, yes. Those values are what I use when I'm testing deploying to a namespace with PSA restricted enabled with helm repo add couchdb https://apache.github.io/couchdb-helm
helm repo update
helm upgrade --install --namespace couchdb couchdb couchdb/couchdb --version=4.5.6 -f ~/couchdb-test-psa-values.yaml You can see that the securityContext is applied here when those values are provided.
You can combine the above values with the previous values you mentioned as well. |
Describe the bug
A clear and concise description of what the bug is.
we are deploying couchdb using helm chart. In
values yaml
we are defining security context as followsBut these values are not taken, we are facing below error
Error: container has runAsNonRoot and image will run as root (pod: "couchdb-couchdb-0_octosec-int(82e260ef-3a13-409f-92a5-de0bf9f633ff)", container: init-copy)
could you please let me know how to pass the value
Version of Helm and Kubernetes:
kubectl version
Client Version: v1.29.3
Helm version "v3.14.2"
What happened:
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know:
The text was updated successfully, but these errors were encountered: