forked from benjojo/alertmanager-discord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s.yaml
52 lines (52 loc) · 1.04 KB
/
k8s.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
apiVersion: apps/v1
kind: Deployment
metadata:
name: alertmanager-discord
namespace: monitoring
spec:
selector:
matchLabels:
app: alertmanager-discord
replicas: 1
template:
metadata:
labels:
app: alertmanager-discord
spec:
containers:
- name: alertmanager-discord
image: morriq/alertmanager-discord
resources:
limits:
memory: '128Mi'
cpu: '500m'
ports:
- containerPort: 9094
env:
- name: DISCORD_WEBHOOK
value: xx
---
apiVersion: v1
kind: Service
metadata:
name: alertmanager-discord
namespace: monitoring
spec:
selector:
app: alertmanager-discord
ports:
- port: 9094
targetPort: 9094
type: ClusterIP
---
apiVersion: monitoring.coreos.com/v1alpha1
kind: AlertmanagerConfig
metadata:
name: alertmanager
namespace: monitoring
spec:
receivers:
- name: discord
webhookConfigs:
- url: 'http://alertmanager-discord:9094'
sendResolved: true