Skip to content

Commit

Permalink
remove note about default setting container securityContext
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebot committed Apr 23, 2023
1 parent cb8fd86 commit f6816df
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions charts/nextcloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,4 @@ These are all the [securityContext](https://kubernetes.io/docs/reference/generat
| `cronjob.securityContext.runAsNonRoot` | Optional security context for cronjob |
| `nextcloud.podSecurityContext` | Optional security context for the NextCloud pod (applies to all containers in the pod) |
For the container, by default, only the `nextcloud.securityContext.runAsUser` and `nextcloud.securityContext.runAsGroup` for the nextcloud container are set, and the UID defaults to `33`, which is the UID of the `www-data` user. If you're using a nextcloud image with Alpine as the base, set this to `82`, the `www-data` user on alpine.
For the pod, `nextcloud.podSecurityContext.fsGroup` is set to `33` by default. You should set this to `82` if you're using an alpine image. See more about how this special option works [here](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#podsecuritycontext-v1-core).
For the pod, `nextcloud.podSecurityContext.fsGroup` is set to `33` (`www-data` on the container) by default. You should set this to `82` if you're using an alpine nextcloud image. See more about how this special option works [here](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#podsecuritycontext-v1-core).

0 comments on commit f6816df

Please sign in to comment.