From fdea1066d693f6c447f6d966274b334e7795ac22 Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Wed, 5 Apr 2023 19:55:01 +0000 Subject: [PATCH] setting security context --- .../videohosting/templates/sts-linuxservices.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/k8s/applications/videohosting/templates/sts-linuxservices.yaml b/k8s/applications/videohosting/templates/sts-linuxservices.yaml index 88ebd80..740e190 100644 --- a/k8s/applications/videohosting/templates/sts-linuxservices.yaml +++ b/k8s/applications/videohosting/templates/sts-linuxservices.yaml @@ -49,6 +49,10 @@ spec: labels: app: {{$k}} spec: + securityContext: + runAsUser: 1000 + runAsGroup: 1000 + fsGroup: 1000 containers: - name: {{$k}} image: "{{ $v.repo }}:{{ $v.tag }}"