File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -367,6 +367,10 @@ kind: Pod
367
367
metadata:
368
368
name: primary-pod
369
369
spec:
370
+ securityContext:
371
+ fsGroup: 2002
372
+ seccompProfile:
373
+ type: RuntimeDefault
370
374
containers:
371
375
- name: primary-container
372
376
image: registry.access.redhat.com/ubi8/ubi-minimal # Using a non-root UBI image
@@ -384,7 +388,7 @@ spec:
384
388
securityContext:
385
389
runAsUser: 1001
386
390
runAsGroup: 2002
387
- fsGroup: 2002 # Ensure fsGroup matches GID
391
+ # fsGroup: 2002 # Ensure fsGroup matches GID
388
392
volumeMounts:
389
393
- name: nfs-storage
390
394
mountPath: /data
@@ -500,6 +504,10 @@ metadata:
500
504
name: dr-pod
501
505
namespace: demo
502
506
spec:
507
+ securityContext:
508
+ fsGroup: 2002
509
+ seccompProfile:
510
+ type: RuntimeDefault
503
511
containers:
504
512
- name: dr-container
505
513
image: registry.access.redhat.com/ubi8/ubi-minimal # Also using a UBI image
@@ -521,7 +529,7 @@ spec:
521
529
securityContext:
522
530
runAsUser: 1001
523
531
runAsGroup: 2002
524
- fsGroup: 2002 # Ensure fsGroup matches GID
532
+ # fsGroup: 2002 # Ensure fsGroup matches GID
525
533
volumeMounts:
526
534
- name: nfs-storage
527
535
mountPath: /data
You can’t perform that action at this time.
0 commit comments