Mercurial > code > home > repos > victoriametrics
comparison k8s_config_alerts/deploy_vmalert.yaml @ 69:6a021aa7b4be
collect alert obj yaml config for a minute (moving it to py)
author | drewp@bigasterisk.com |
---|---|
date | Fri, 03 May 2024 11:56:34 -0700 |
parents | deploy_vmalert.yaml@adde35eb4773 |
children |
comparison
equal
deleted
inserted
replaced
68:c5e98d891638 | 69:6a021aa7b4be |
---|---|
1 apiVersion: apps/v1 | |
2 kind: Deployment | |
3 metadata: | |
4 name: vmalert | |
5 spec: | |
6 replicas: 1 | |
7 strategy: { type: Recreate } | |
8 selector: | |
9 matchLabels: | |
10 app: vmalert | |
11 template: | |
12 metadata: | |
13 labels: | |
14 app: vmalert | |
15 annotations: | |
16 prometheus.io/scrape: "true" | |
17 spec: | |
18 volumes: | |
19 - name: config | |
20 configMap: { name: victoriametrics-config } | |
21 serviceAccountName: victoriametrics | |
22 containers: | |
23 - name: vmalert | |
24 image: docker.io/victoriametrics/vmalert:v1.91.2 | |
25 args: | |
26 - -configCheckInterval=5s | |
27 - -datasource.url=http://victoriametrics/m/ | |
28 - -datasource.queryStep=5m | |
29 - -evaluationInterval=1m | |
30 - -external.url=https://bigasterisk.com/vmalert | |
31 - -loggerLevel=INFO | |
32 - -loggerTimezone=America/Los_Angeles | |
33 - -memory.allowedBytes=512MB | |
34 - -notifier.url=http://alertmanager | |
35 - -remoteRead.url=http://victoriametrics/m/ | |
36 - -remoteWrite.url=http://victoriametrics/m/ | |
37 - -rule=/local/rules | |
38 ports: | |
39 - containerPort: 8880 | |
40 volumeMounts: | |
41 - { name: config, mountPath: /local } | |
42 --- | |
43 apiVersion: v1 | |
44 kind: Service | |
45 metadata: | |
46 name: vmalert | |
47 spec: | |
48 ports: | |
49 - port: 80 | |
50 targetPort: 8880 | |
51 selector: | |
52 app: vmalert |