-
Notifications
You must be signed in to change notification settings - Fork 9
/
kubernetes-manifest.yaml
104 lines (100 loc) · 2.62 KB
/
kubernetes-manifest.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
---
apiVersion: v1
kind: Service
metadata:
labels:
app: grafana-matrix-ingress
name: grafana-matrix-ingress
spec:
ports:
- port: 9292
protocol: TCP
targetPort: 9292
selector:
app: grafana-matrix-ingress
type: ClusterIP
---
apiVersion: v1
data:
config.yml: |
---
# Webhook server configuration
# Or use the launch options `-o '::' -p 4567`
#bind: '::'
#port: 4567
# Set up your HS connections
matrix:
- name: matrix-org
url: https://matrix.org
access_token: <token>
#device_id: <device> # Optional
#- name: matrix-priv
# url: https://private.matrix.org
# access_token: <token>
# Set up notification ingress rules
rules:
- name: hq # Name of the rule
room: "#hq:matrix.org" # Room or ID
matrix: matrix-org # The Matrix HS to use - defaults to first one
# The following values are optional:
#image: true # Attach image to the notification?
#embed_image: true # Upload and embed the image into the message?
#templates:
# Templates to use when rendering the notification, available placeholders:
# %TEMPLATES% - lib/grafana_matrix/templates
# $<env> - Environment variables
#html: "%TEMPLATES%/html.erb" # Path to HTML template
#plain: "%TEMPLATES%/plain.erb" # Path to plaintext template
#auth:
#user: example
#pass: any HTTP encodable string
#- name: other-hq
# room: "#hq:private.matrix.org
# matrix: matrix-priv
# To use the webhook, you need to configure it into Grafana as:
#
# Url: http://<server address>:<port>/hook?rule=<rule name>
# Http Method: POST
kind: ConfigMap
metadata:
labels:
app: grafana-matrix-ingress
name: grafana-matrix-ingress
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: grafana-matrix-ingress
name: grafana-matrix-ingress
spec:
selector:
matchLabels:
app: grafana-matrix-ingress
template:
metadata:
labels:
app: grafana-matrix-ingress
spec:
containers:
- image: ananace/grafana-matrix:latest
name: grafana-matrix-ingress
ports:
- containerPort: 9292
protocol: TCP
resources:
limits:
cpu: 250m
memory: 256Mi
requests:
cpu: 10m
memory: 25Mi
volumeMounts:
- mountPath: /app/config.yml
name: config
subPath: config.yml
restartPolicy: Always
volumes:
- configMap:
name: grafana-matrix-ingress
name: config