Skip to content

Commit

Permalink
chore: Add SecurityContext to backend and service
Browse files Browse the repository at this point in the history
  • Loading branch information
jim60105 committed Jan 10, 2024
1 parent 90f94d0 commit 51fc529
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions recordermoe/templates/backend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ spec:
app: recorderbackend
{{- include "recorder.selectorLabels" . | nindent 8 }}
spec:
securityContext:
runAsUser: 1001
runAsGroup: 0
fsGroup: 0
containers:
- name: recorderbackend
image: {{ .Values.kubernetes.backend.image }}
Expand Down
4 changes: 4 additions & 0 deletions recordermoe/templates/service-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ spec:
app: recorderservice
{{- include "recorder.selectorLabels" . | nindent 8 }}
spec:
securityContext:
runAsUser: 1654
runAsGroup: 0
fsGroup: 0
containers:
- name: recorderservice
image: {{ .Values.kubernetes.service.image }}
Expand Down

0 comments on commit 51fc529

Please sign in to comment.