theshire/kubernetes/apps/observability/victoria-metrics/cluster/vmalert.yaml

37 lines
995 B
YAML
Raw Normal View History

2024-10-05 13:37:07 -05:00
---
# yaml-language-server: $schema=https://ks.hsn.dev/operator.victoriametrics.com/vmalert_v1beta1.json
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMAlert
metadata:
2024-10-06 22:17:06 -05:00
name: victoria
2024-10-05 13:37:07 -05:00
spec:
2024-10-06 22:15:07 -05:00
evaluationInterval: 1m
useStrictSecurity: true
selectAllByDefault: true
2024-10-05 13:37:07 -05:00
datasource:
2024-10-06 22:16:12 -05:00
url: http://vmsingle-victoria.observability.svc:8429
2024-10-05 13:37:07 -05:00
notifiers:
- url: http://alertmanager.observability.svc:9093
2024-10-06 22:15:07 -05:00
remoteRead:
2024-10-06 22:16:12 -05:00
url: http://vmsingle-victoria.observability.svc:8429
2024-10-06 22:15:07 -05:00
remoteWrite:
2024-10-06 22:16:12 -05:00
url: http://vmsingle-victoria.observability.svc:8429
2024-10-06 22:15:07 -05:00
securityContext:
runAsUser: 65534
runAsGroup: 65534
runAsNonRoot: true
fsGroup: 65534
2024-10-05 13:37:07 -05:00
resources:
requests:
cpu: 3m
limits:
memory: 128Mi
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
2024-10-06 22:17:06 -05:00
app.kubernetes.io/instance: victoria
2024-10-05 13:37:07 -05:00
app.kubernetes.io/name: vmalert