From acd8a87ef7c278d5235d8730d9009fd4c58c1172 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=B3=E9=88=9E?= Date: Thu, 11 Jan 2024 04:57:04 +0800 Subject: [PATCH] chore(backend): Move the securityContext to container level --- recordermoe/templates/backend-deployment.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/recordermoe/templates/backend-deployment.yaml b/recordermoe/templates/backend-deployment.yaml index c0b48c8..1031d1b 100644 --- a/recordermoe/templates/backend-deployment.yaml +++ b/recordermoe/templates/backend-deployment.yaml @@ -20,12 +20,12 @@ spec: app: recorderbackend {{- include "recorder.selectorLabels" . | nindent 8 }} spec: - securityContext: - runAsUser: 1001 - runAsGroup: 0 - fsGroup: 0 containers: - name: recorderbackend + securityContext: + runAsUser: 1001 + runAsGroup: 0 + fsGroup: 0 image: {{ .Values.kubernetes.backend.image }} imagePullPolicy: Always ports: