Skip to content

Commit ff3cbb9

Browse files
committed
fix: add fsGroup to podSecurityContext for PVC write access
Pods running as UID 1000 could not write to PVC-backed /data mount because the volume filesystem was owned by root. Setting fsGroup: 1000 tells Kubernetes to chown volume contents to GID 1000, resolving the periodic state save permission error.
1 parent b2bde72 commit ff3cbb9

File tree

6 files changed

+7
-0
lines changed

6 files changed

+7
-0
lines changed

helm/disentangle/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ pow:
8484
# Pod-level security context
8585
podSecurityContext:
8686
runAsNonRoot: true
87+
fsGroup: 1000
8788
seccompProfile:
8889
type: RuntimeDefault
8990

tests/golden/custom-resources.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ spec:
133133
spec:
134134
serviceAccountName: golden-test-disentangle
135135
securityContext:
136+
fsGroup: 1000
136137
runAsNonRoot: true
137138
seccompProfile:
138139
type: RuntimeDefault

tests/golden/default.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ spec:
133133
spec:
134134
serviceAccountName: golden-test-disentangle
135135
securityContext:
136+
fsGroup: 1000
136137
runAsNonRoot: true
137138
seccompProfile:
138139
type: RuntimeDefault

tests/golden/full-features.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ spec:
133133
spec:
134134
serviceAccountName: golden-test-disentangle
135135
securityContext:
136+
fsGroup: 1000
136137
runAsNonRoot: true
137138
seccompProfile:
138139
type: RuntimeDefault
@@ -244,6 +245,7 @@ spec:
244245
spec:
245246
restartPolicy: OnFailure
246247
securityContext:
248+
fsGroup: 1000
247249
runAsNonRoot: true
248250
seccompProfile:
249251
type: RuntimeDefault

tests/golden/minimal.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ spec:
133133
spec:
134134
serviceAccountName: golden-test-disentangle
135135
securityContext:
136+
fsGroup: 1000
136137
runAsNonRoot: true
137138
seccompProfile:
138139
type: RuntimeDefault

tests/golden/no-serviceaccount.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ spec:
121121
spec:
122122
serviceAccountName: default
123123
securityContext:
124+
fsGroup: 1000
124125
runAsNonRoot: true
125126
seccompProfile:
126127
type: RuntimeDefault

0 commit comments

Comments
 (0)