Skip to content

Commit

Permalink
Set securityContext
Browse files Browse the repository at this point in the history
Signed-off-by: Jeroen Rijken <[email protected]>
  • Loading branch information
Jeroen0494 committed Mar 3, 2023
1 parent f82c8f2 commit c29e842
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion charts/crowdsec/templates/tests/test_lapi_up.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,16 @@ spec:
- -ec
- |
curl -XGET http://{{ .Release.Name }}-service:8080/health
restartPolicy: Never
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
readOnlyRootFilesystem: true
runAsGroup: {{ .Values.securityContext.runAsGroup | default "10000" }}
runAsNonRoot: true
runAsUser: {{ .Values.securityContext.runAsUser | default "10000" }}
seccompProfile:
type: RuntimeDefault
restartPolicy: Never

0 comments on commit c29e842

Please sign in to comment.