Mercurial > code > home > repos > victoriametrics
view deploy_vmalert.yaml @ 21:10127391f6f3
don't use docker images to bake in the config files
author | drewp@bigasterisk.com |
---|---|
date | Sat, 24 Jun 2023 23:00:40 -0700 |
parents | 2eab3e6b89f2 |
children | cd115f1ca2a8 |
line wrap: on
line source
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: docker.io/victoriametrics/vmalert:v1.91.2 args: - -configCheckInterval=5s - -datasource.url=http://victoriametrics/m/ - -external.url=https://bigasterisk.com/vmalert - -loggerLevel=INFO - -loggerTimezone=America/Los_Angeles - -memory.allowedBytes=512MB - -notifier.url=http://alertmanager - -remoteRead.url=http://victoriametrics/m/ - -remoteWrite.url=http://victoriametrics/m/ - -rule=/local/rules/*.yaml - -rule=/local/rules/build/*.yaml ports: - containerPort: 8880 --- apiVersion: v1 kind: Service metadata: name: vmalert spec: ports: - port: 80 targetPort: 8880 selector: app: vmalert