Skip to content

Commit 87ce5c4

Browse files
committed
nfs
1 parent 936f440 commit 87ce5c4

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

redhat/ocp4/4.18/2025.07.nfs.fsgroup.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,10 @@ kind: Pod
367367
metadata:
368368
name: primary-pod
369369
spec:
370+
securityContext:
371+
fsGroup: 2002
372+
seccompProfile:
373+
type: RuntimeDefault
370374
containers:
371375
- name: primary-container
372376
image: registry.access.redhat.com/ubi8/ubi-minimal # Using a non-root UBI image
@@ -384,7 +388,7 @@ spec:
384388
securityContext:
385389
runAsUser: 1001
386390
runAsGroup: 2002
387-
fsGroup: 2002 # Ensure fsGroup matches GID
391+
# fsGroup: 2002 # Ensure fsGroup matches GID
388392
volumeMounts:
389393
- name: nfs-storage
390394
mountPath: /data
@@ -500,6 +504,10 @@ metadata:
500504
name: dr-pod
501505
namespace: demo
502506
spec:
507+
securityContext:
508+
fsGroup: 2002
509+
seccompProfile:
510+
type: RuntimeDefault
503511
containers:
504512
- name: dr-container
505513
image: registry.access.redhat.com/ubi8/ubi-minimal # Also using a UBI image
@@ -521,7 +529,7 @@ spec:
521529
securityContext:
522530
runAsUser: 1001
523531
runAsGroup: 2002
524-
fsGroup: 2002 # Ensure fsGroup matches GID
532+
# fsGroup: 2002 # Ensure fsGroup matches GID
525533
volumeMounts:
526534
- name: nfs-storage
527535
mountPath: /data

0 commit comments

Comments
 (0)