Skip to content

Commit 0233bb6

Browse files
committed
Change security context
Signed-off-by: Eran Ifrach <[email protected]>
1 parent 7db8e4c commit 0233bb6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

openshift/template.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ objects:
8585
dnsPolicy: ClusterFirst
8686
restartPolicy: Always
8787
schedulerName: default-scheduler
88-
securityContext: {}
88+
securityContext:
89+
runAsNonRoot: true
90+
fsGroup: 0
8991
terminationGracePeriodSeconds: 30
9092
- apiVersion: v1
9193
kind: Service

0 commit comments

Comments
 (0)