Skip to content

Commit 436550e

Browse files
expose am cluster port via udp as well
1 parent 0248094 commit 436550e

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

apps/monitoring/alertmanager/networkpolicy.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ spec:
2626
- ports:
2727
- protocol: TCP
2828
port: 9094
29+
- protocol: UDP
30+
port: 9094

apps/monitoring/alertmanager/service.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,16 @@ spec:
1515
name: "am-cluster"
1616
selector:
1717
app.kubernetes.io/name: "alertmanager"
18+
---
19+
apiVersion: "v1"
20+
kind: "Service"
21+
metadata:
22+
name: "alertmanager-cluster-udp"
23+
spec:
24+
ports:
25+
- port: 9094
26+
protocol: "UDP"
27+
targetPort: "am-cluster"
28+
name: "am-cluster"
29+
selector:
30+
app.kubernetes.io/name: "alertmanager"

apps/monitoring/alertmanager/statefulset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ spec:
5656
- containerPort: 9093
5757
name: "alertmanager"
5858
- containerPort: 9094
59+
protocol: "TCP"
5960
name: "am-cluster"
61+
- containerPort: 9094
62+
protocol: "UDP"
6063
livenessProbe:
6164
failureThreshold: 10
6265
httpGet:

0 commit comments

Comments
 (0)