Skip to content

Commit

Permalink
fix: grant rights on database pod ephemeral volume
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolife999 committed Sep 26, 2024
1 parent 39e192f commit 5db4ed2
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ private ExecutorDatabaseStatefulTemplate() {
}
},
"spec": {
"securityContext": {
"fsGroupChangePolicy": "Always",
"fsGroup": 1001,
"supplementalGroups": [
1001
],
"runAsUser": 1001
},
"containers": [
{
"env": [
Expand Down Expand Up @@ -175,7 +183,7 @@ private ExecutorDatabaseStatefulTemplate() {
"name": "custom-init-scripts"
},
{
"mountPath": "/bitnami/postgresql",
"mountPath": "/bitnami",
"name": "tmp-volume"
}
]
Expand Down

0 comments on commit 5db4ed2

Please sign in to comment.