From 7af9c4c214689bd21b5fc6b1e4989f0667c1aabb Mon Sep 17 00:00:00 2001 From: dvirlabs <114520947+dvirlabs@users.noreply.github.com> Date: Wed, 31 Dec 2025 11:44:56 +0200 Subject: [PATCH] Fix invy db --- charts/invy-chart/templates/db-statefulset.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/invy-chart/templates/db-statefulset.yaml b/charts/invy-chart/templates/db-statefulset.yaml index 6321063..fa134f4 100644 --- a/charts/invy-chart/templates/db-statefulset.yaml +++ b/charts/invy-chart/templates/db-statefulset.yaml @@ -18,6 +18,10 @@ spec: {{- include "invy.selectorLabels" . | nindent 8 }} app.kubernetes.io/component: database spec: + securityContext: + runAsUser: 999 + runAsNonRoot: true + fsGroup: 999 containers: - name: postgres image: "{{ .Values.postgres.image.repository }}:{{ .Values.postgres.image.tag }}"