add vmalert

This commit is contained in:
Joseph Hanson 2024-10-06 22:15:07 -05:00
parent abfc90ee71
commit e5710204df
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
2 changed files with 13 additions and 9 deletions

View file

@ -3,5 +3,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
# - vmalert.yaml
- vmalert.yaml
- vmsingle.yaml

View file

@ -5,22 +5,27 @@ kind: VMAlert
metadata:
name: cluster
spec:
evaluationInterval: 1m
useStrictSecurity: true
selectAllByDefault: true
datasource:
url: http://vmsingle-cluster.observability.svc:8429
evaluationInterval: 1m
notifiers:
- url: http://alertmanager.observability.svc:9093
# remoteRead:
# url: http://vmsingle-cluster.observability.svc:8429
# remoteWrite:
# url: http://vmsingle-cluster.observability.svc:8429
replicaCount: 1
remoteRead:
url: http://vmsingle-cluster.observability.svc:8429
remoteWrite:
url: http://vmsingle-cluster.observability.svc:8429
securityContext:
runAsUser: 65534
runAsGroup: 65534
runAsNonRoot: true
fsGroup: 65534
resources:
requests:
cpu: 3m
limits:
memory: 128Mi
selectAllByDefault: true
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
@ -29,4 +34,3 @@ spec:
matchLabels:
app.kubernetes.io/instance: cluster
app.kubernetes.io/name: vmalert
useStrictSecurity: true