Skip to content

Commit

Permalink
Update zz-default.provisioners.yaml - securityContext for redis
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Benoit <[email protected]>
  • Loading branch information
mathieu-benoit authored Oct 14, 2024
1 parent ee70d75 commit 3cd5ebb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions internal/provisioners/default/zz-default.provisioners.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,17 @@
k8s.score.dev/resource-uid: {{ .Uid }}
k8s.score.dev/resource-guid: {{ .Guid }}
spec:
automountServiceAccountToken: false
containers:
- name: redis
image: redis:7-alpine
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
readOnlyRootFilesystem: true
ports:
- name: redis
containerPort: 6379
Expand All @@ -337,6 +345,13 @@
- redis-cli
- ping
periodSeconds: 3
securityContext:
fsGroup: 1000
runAsGroup: 1000
runAsNonRoot: true
runAsUser: 1000
seccompProfile:
type: RuntimeDefault
volumes:
- name: config
secret:
Expand Down

0 comments on commit 3cd5ebb

Please sign in to comment.