Mercurial > code > home > repos > victoriametrics
diff deploy_vmalert.yaml @ 7:7130eb6d8e6b
redo deployment config to use skaffold live sync instead of busted CM way
author | drewp@bigasterisk.com |
---|---|
date | Sun, 04 Dec 2022 02:06:31 -0800 |
parents | vmalert.yaml@1eb6e6a2b9b6 |
children | 2eab3e6b89f2 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/deploy_vmalert.yaml Sun Dec 04 02:06:31 2022 -0800 @@ -0,0 +1,49 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: vmalert +spec: + replicas: 1 + strategy: { type: Recreate } + selector: + matchLabels: + app: vmalert + template: + metadata: + labels: + app: vmalert + annotations: + prometheus.io/scrape: "true" + spec: + serviceAccountName: victoriametrics + containers: + - name: vmalert + image: bang5:5000/vmalert + args: + - -configCheckInterval=5s + - -datasource.url=http://victoriametrics.default.svc.cluster.local./m/ + - -external.url=https://bigasterisk.com/vmalert + - -loggerLevel=INFO + - -loggerTimezone=America/Los_Angeles + - -memory.allowedBytes=512MB + - -notifier.url=http://alertmanager.default.svc.cluster.local. + - -remoteRead.url=http://victoriametrics.default.svc.cluster.local./m/ + - -remoteWrite.url=http://victoriametrics.default.svc.cluster.local./m/ + - -rule=/local/rules/*.yaml + - -rule=/local/rules/build/*.yaml + ports: + - containerPort: 8880 + resources: + limits: + memory: 0.5Gi +--- +apiVersion: v1 +kind: Service +metadata: + name: vmalert +spec: + ports: + - port: 80 + targetPort: 8880 + selector: + app: vmalert