Skip to content

Commit a263979

Browse files
committed
add securityContext to container specs - related to #316 and #317
1 parent 91bc2b1 commit a263979

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

deployment/helm/reactive-interaction-gateway/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ spec:
1414
labels:
1515
{{- include "reactive-interaction-gateway.selectorLabels" . | nindent 8 }}
1616
spec:
17+
securityContext:
18+
runAsUser: 1000
19+
runAsGroup: 1000
20+
runAsNonRoot: true
1721
containers:
1822
- name: {{ .Chart.Name }}
1923
image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}"

deployment/kubectl/rig.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ spec:
6464
labels:
6565
app: reactive-interaction-gateway
6666
spec:
67+
securityContext:
68+
runAsUser: 1000
69+
runAsGroup: 1000
70+
runAsNonRoot: true
6771
nodeSelector: {}
6872
affinity: {}
6973
tolerations: []

0 commit comments

Comments
 (0)