csi: restrict csiaddons to use only 1 port

This commit restrict csiaddons to open only 1 port
as per the requirement which is required for security.

Fixes: #9604

Signed-off-by: yati1998 <ypadia@redhat.com>
(cherry picked from commit c559bbdf6b)
This commit is contained in:
yati1998 authored and mergify-bot committed 2022-01-19 14:43:50 +00:00
1 parent 634bc47a62
commit d229cd4c8d
3 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -758,8 +758,8 @@ spec:
- min: 9283
max: 9283
# port for CSIAddons
- min: 9061
max: 9079
- min: 9070
max: 9070
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
+2 -2
View File
@@ -77,8 +77,8 @@ spec:
- min: 9283
max: 9283
# port for CSIAddons
- min: 9061
max: 9079
- min: 9070
max: 9070
{{- if .Values.rbacEnable }}
---
apiVersion: rbac.authorization.k8s.io/v1
+2 -2
View File
@@ -842,8 +842,8 @@ spec:
- min: 9283
max: 9283
# port for CSIAddons
- min: 9061
max: 9079
- min: 9070
max: 9070
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1