From 1f578d8f1b733e868f81c3670fd256bfda9d96f7 Mon Sep 17 00:00:00 2001 From: Tomasz Barwicki Date: Wed, 12 Jun 2024 11:20:45 +0200 Subject: [PATCH] fix: modify Deployment to run pod as non root user --- charts/app-dashboard/templates/deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/app-dashboard/templates/deployment.yaml b/charts/app-dashboard/templates/deployment.yaml index 782247c..f283bf0 100644 --- a/charts/app-dashboard/templates/deployment.yaml +++ b/charts/app-dashboard/templates/deployment.yaml @@ -43,6 +43,8 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} serviceAccountName: {{ include "app-dashboard.serviceAccountName" . }} + securityContext: + runAsUser: 1000 containers: - name: {{ .Chart.Name }} securityContext: