From 66f8419a47dfc3ee7bb77d93cabd381bb3b40098 Mon Sep 17 00:00:00 2001 From: Ruben Hensen Date: Tue, 17 Dec 2024 14:01:45 +0100 Subject: [PATCH] Whishper: add securitycontext --- whisper/mongo-deployment.yaml | 8 +++++--- whisper/translate-deployment.yaml | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/whisper/mongo-deployment.yaml b/whisper/mongo-deployment.yaml index a0d0bde..9f589bd 100644 --- a/whisper/mongo-deployment.yaml +++ b/whisper/mongo-deployment.yaml @@ -22,10 +22,12 @@ spec: labels: io.kompose.service: mongo spec: + securityContext: + fsGroup: 2000 containers: - # - args: - # - --logpath - # - /var/log/mongodb/mongod.log + - args: + - --logpath + - /var/log/mongodb/mongod.log env: - name: DB_PASS valueFrom: diff --git a/whisper/translate-deployment.yaml b/whisper/translate-deployment.yaml index 8f950f2..3704109 100644 --- a/whisper/translate-deployment.yaml +++ b/whisper/translate-deployment.yaml @@ -22,6 +22,8 @@ spec: labels: io.kompose.service: translate spec: + securityContext: + fsGroup: 2000 containers: - env: - name: DB_PASS