Skip to content

Commit 434b1a1

Browse files
committed
🐛 Add RHSSO servicemonitor networkpolicy
Signed-off-by: Jason Montleon <[email protected]>
1 parent b82babe commit 434b1a1

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

roles/tackle/templates/networkpolicy.yml.j2

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,24 @@ spec:
5555
role: {{ hub_service_name }}
5656
ingress:
5757
- ports:
58-
- port: {{ hub_metrics_port }}
58+
- port: {{ hub_metrics_port }}
59+
{% if app_profile == 'mta' %}
60+
---
61+
apiVersion: networking.k8s.io/v1
62+
kind: NetworkPolicy
63+
metadata:
64+
name: {{ app_name }}-rhsso-metrics
65+
namespace: {{ app_namespace }}
66+
spec:
67+
ingress:
68+
- from:
69+
- namespaceSelector:
70+
matchLabels:
71+
network.openshift.io/policy-group: monitoring
72+
- ports:
73+
- port: 8383
74+
- port: 8686
75+
podSelector:
76+
matchLabels:
77+
name: rhsso-operator
78+
{% endif %}

0 commit comments

Comments
 (0)