Skip to content
This repository was archived by the owner on Jan 21, 2021. It is now read-only.

Fix error breaking non-root policy mongodb #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mariusrugan
Copy link

Hi,

i've spotted the "Error: container's runAsUser breaks non-root policy" in my events and traced it down to, the securityContext runAsUser/fsGroup.

The chart defaults (https://github.com/helm/charts/blob/e1b97b9232d7273127f53c7899d2377d5912f267/stable/mongodb/values-production.yaml#L113) already specify runAsUser and fsGroup 1001 and mongodb starts successfully with this configuration.
A bit strange tho' because there is no UID/GID defined 1001 in the container.

Hi,

i've spotted the "Error: container's runAsUser breaks non-root policy" in my events and traced it down to, the securityContext  runAsUser/fsGroup. 

The chart defaults (https://github.com/helm/charts/blob/e1b97b9232d7273127f53c7899d2377d5912f267/stable/mongodb/values-production.yaml#L113) already specify runAsUser and fsGroup 1001 and mongodb starts successfully with this configuration.
A bit strange tho' because there is no UID/GID defined 1001 in the container.
mlandauer added a commit to mlandauer/flux-get-started that referenced this pull request Mar 30, 2020
@fabstu
Copy link

fabstu commented May 17, 2020

I found the same issue. Though I wonder whether this is here on purpose to show the GitOps workflow of fixing it, pushing and seeing the cluster correct itself.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants