Skip to content

Commit

Permalink
Add securityContext to helm and manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
bork91 committed Sep 27, 2024
1 parent 474b8c5 commit f874627
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
16 changes: 9 additions & 7 deletions deploy/helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,15 @@ env:
podSecurityContext: {}
# fsGroup: 2000

securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
securityContext:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 11001
seccompProfile:
type: RuntimeDefault

service:
type: ClusterIP
Expand Down
9 changes: 9 additions & 0 deletions deploy/kubernetes-manifest/kubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,14 @@ spec:
limits:
memory: "128Mi"
cpu: "250m"
securityContext:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 11001
seccompProfile:
type: RuntimeDefault
ports:
- containerPort: 8000

0 comments on commit f874627

Please sign in to comment.