fix(csi-addons): netpol egress rook-ceph rbdplugin

This commit is contained in:
JJGadgets
2023-11-17 10:07:25 +08:00
parent 8fd49fe34a
commit a6700cc3ba
2 changed files with 13 additions and 0 deletions

View File

@@ -8,5 +8,14 @@ metadata:
spec:
endpointSelector: {}
egress:
# allow access to apiserver
- toEntities:
- kube-apiserver
# allow access to Rook-Ceph's rbdplugin which has csi-addons listener
- toEndpoints:
- matchLabels:
io.kubernetes.pod.namespace: "rook-ceph"
app: "csi-rbdplugin"
toPorts:
- ports:
- port: "9070"

View File

@@ -15,6 +15,10 @@ spec:
# external Ceph cluster
- fromCIDRSet:
- cidr: "${IP_PVE_CEPH_CIDR}"
# csi-addons
- fromEndpoints:
- matchLabels:
io.kubernetes.pod.namespace: "csi-addons-system"
egress:
# same namespace
- toEndpoints: