Skip to content

Commit e3c2971

Browse files
authored
🐛 Fix metrics networkpolicy indentation and restrict access (#414)
Signed-off-by: Jason Montleon <[email protected]>
1 parent bd1750c commit e3c2971

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

roles/tackle/templates/networkpolicy.yml.j2

+7-3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ spec:
5353
podSelector:
5454
matchLabels:
5555
role: {{ hub_service_name }}
56-
ingress:
57-
- ports:
58-
- port: {{ hub_metrics_port }}
56+
ingress:
57+
- from:
58+
- namespaceSelector:
59+
matchLabels:
60+
network.openshift.io/policy-group: monitoring
61+
- ports:
62+
- port: {{ hub_metrics_port }}

0 commit comments

Comments
 (0)