Skip to content

Commit

Permalink
Kustomize: Skip recursive permission change
Browse files Browse the repository at this point in the history
  • Loading branch information
cniackz committed Aug 29, 2023
1 parent 0f68876 commit 8fb3228
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/kustomization/base/tenant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,16 @@ spec:
storage: 1Ti
storageClassName: standard
status: { }
## Configure security context
## Configure Pod's security context
## We recommend to skip the recursive permission change by using
## fsGroupChangePolicy as OnRootMismatch because it can be pretty
## expensive for larger volumes with lots of small files.
securityContext:
runAsUser: 1000
runAsGroup: 1000
runAsNonRoot: true
fsGroup: 1000
fsGroupChangePolicy: "OnRootMismatch"
## Configure container security context
containerSecurityContext:
runAsUser: 1000
Expand Down

0 comments on commit 8fb3228

Please sign in to comment.