Skip to content

Commit 05ca58c

Browse files
Mattia Eleuterimattia-eleuteri
authored andcommitted
fix(tenant): restrict virt-handler egress policy to vmagent pods only
The CiliumClusterwideNetworkPolicy for egress to virt-handler was selecting all pods in the tenant namespace. Narrow the endpointSelector to match only vmagent pods using the app.kubernetes.io/name label. Signed-off-by: Mattia Eleuteri <[email protected]> Signed-off-by: mattia-eleuteri <[email protected]>
1 parent cf66439 commit 05ca58c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎packages/apps/tenant/templates/networkpolicy.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ spec:
217217
endpointSelector:
218218
matchLabels:
219219
"k8s:io.kubernetes.pod.namespace": "{{ include "tenant.name" . }}"
220+
"k8s:app.kubernetes.io/name": "vmagent"
220221
egress:
221222
- toEndpoints:
222223
- matchLabels:

0 commit comments

Comments
 (0)