diff --git a/arc-core/src/main/java/fr/insee/arc/core/service/kubernetes/configuration/ExecutorDatabaseStatefulTemplate.java b/arc-core/src/main/java/fr/insee/arc/core/service/kubernetes/configuration/ExecutorDatabaseStatefulTemplate.java index d396fac8..bbac5333 100644 --- a/arc-core/src/main/java/fr/insee/arc/core/service/kubernetes/configuration/ExecutorDatabaseStatefulTemplate.java +++ b/arc-core/src/main/java/fr/insee/arc/core/service/kubernetes/configuration/ExecutorDatabaseStatefulTemplate.java @@ -28,6 +28,14 @@ private ExecutorDatabaseStatefulTemplate() { } }, "spec": { + "securityContext": { + "fsGroupChangePolicy": "Always", + "fsGroup": 1001, + "supplementalGroups": [ + 1001 + ], + "runAsUser": 1001 + }, "containers": [ { "env": [ @@ -175,7 +183,7 @@ private ExecutorDatabaseStatefulTemplate() { "name": "custom-init-scripts" }, { - "mountPath": "/bitnami/postgresql", + "mountPath": "/bitnami", "name": "tmp-volume" } ]