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 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
# - vmalert.yaml - vmalert.yaml
- vmsingle.yaml - vmsingle.yaml

View file

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