@@ -175,11 +175,22 @@ rules:
175
175
- security.openshift.io
176
176
resourceNames :
177
177
- nginx-gateway-scc
178
+ - nginx-gateway-scc-nginx
178
179
resources :
179
180
- securitycontextconstraints
180
181
verbs :
181
182
- use
183
+ - apiGroups :
184
+ - rbac.authorization.k8s.io
185
+ resources :
186
+ - roles
187
+ - rolebindings
188
+ verbs :
182
189
- create
190
+ - update
191
+ - delete
192
+ - list
193
+ - get
183
194
- watch
184
195
---
185
196
apiVersion : rbac.authorization.k8s.io/v1
@@ -272,6 +283,7 @@ spec:
272
283
- --metrics-port=9113
273
284
- --health-port=8081
274
285
- --leader-election-lock-name=nginx-gateway-leader-election
286
+ - --nginx-scc=nginx-gateway-scc-nginx
275
287
env :
276
288
- name : POD_NAMESPACE
277
289
valueFrom :
@@ -442,6 +454,10 @@ fsGroup:
442
454
type : MustRunAs
443
455
kind : SecurityContextConstraints
444
456
metadata :
457
+ labels :
458
+ app.kubernetes.io/instance : nginx-gateway
459
+ app.kubernetes.io/name : nginx-gateway
460
+ app.kubernetes.io/version : edge
445
461
name : nginx-gateway-scc
446
462
readOnlyRootFilesystem : true
447
463
requiredDropCapabilities :
@@ -463,3 +479,87 @@ users:
463
479
- system:serviceaccount:nginx-gateway:nginx-gateway
464
480
volumes :
465
481
- secret
482
+ ---
483
+ allowHostDirVolumePlugin : false
484
+ allowHostIPC : false
485
+ allowHostNetwork : false
486
+ allowHostPID : false
487
+ allowHostPorts : false
488
+ allowPrivilegeEscalation : false
489
+ allowPrivilegedContainer : false
490
+ apiVersion : security.openshift.io/v1
491
+ fsGroup :
492
+ ranges :
493
+ - max : 1001
494
+ min : 1001
495
+ type : MustRunAs
496
+ kind : SecurityContextConstraints
497
+ metadata :
498
+ labels :
499
+ app.kubernetes.io/instance : nginx-gateway
500
+ app.kubernetes.io/name : nginx-gateway
501
+ app.kubernetes.io/version : edge
502
+ name : nginx-gateway-scc-cert-generator
503
+ readOnlyRootFilesystem : true
504
+ requiredDropCapabilities :
505
+ - ALL
506
+ runAsUser :
507
+ type : MustRunAsRange
508
+ uidRangeMax : 101
509
+ uidRangeMin : 101
510
+ seLinuxContext :
511
+ type : MustRunAs
512
+ seccompProfiles :
513
+ - runtime/default
514
+ supplementalGroups :
515
+ ranges :
516
+ - max : 1001
517
+ min : 1001
518
+ type : MustRunAs
519
+ users :
520
+ - system:serviceaccount:nginx-gateway:nginx-gateway-cert-generator
521
+ volumes :
522
+ - projected
523
+ ---
524
+ allowHostDirVolumePlugin : false
525
+ allowHostIPC : false
526
+ allowHostNetwork : false
527
+ allowHostPID : false
528
+ allowHostPorts : false
529
+ allowPrivilegedContainer : false
530
+ allowedCapabilities :
531
+ - NET_BIND_SERVICE
532
+ apiVersion : security.openshift.io/v1
533
+ fsGroup :
534
+ ranges :
535
+ - max : 1001
536
+ min : 1001
537
+ type : MustRunAs
538
+ kind : SecurityContextConstraints
539
+ metadata :
540
+ labels :
541
+ app.kubernetes.io/instance : nginx-gateway
542
+ app.kubernetes.io/name : nginx-gateway
543
+ app.kubernetes.io/version : edge
544
+ name : nginx-gateway-scc-nginx
545
+ readOnlyRootFilesystem : true
546
+ requiredDropCapabilities :
547
+ - ALL
548
+ runAsUser :
549
+ type : MustRunAsRange
550
+ uidRangeMax : 101
551
+ uidRangeMin : 101
552
+ seLinuxContext :
553
+ type : MustRunAs
554
+ seccompProfiles :
555
+ - runtime/default
556
+ supplementalGroups :
557
+ ranges :
558
+ - max : 1001
559
+ min : 1001
560
+ type : MustRunAs
561
+ volumes :
562
+ - emptyDir
563
+ - secret
564
+ - configMap
565
+ - projected
0 commit comments