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

48 lines
1.4 KiB
YAML
Raw Normal View History

2024-10-10 14:09:28 -05:00
---
# yaml-language-server: $schema=https://ks.hsn.dev/operator.victoriametrics.com/vmagent_v1beta1.json
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMAgent
metadata:
name: victoria
spec:
scrapeInterval: 60s
selectAllByDefault: true
statefulMode: true
useStrictSecurity: true
vmAgentExternalLabelName: prometheus
externalLabels:
cluster: theshire
extraArgs:
promscrape.maxScrapeSize: "33554432" # 32MiB
promscrape.streamParse: "true"
# Do not store original labels in vmagent's memory by default. This reduces the amount of memory used by vmagent
# but makes vmagent debugging UI less informative. See: https://docs.victoriametrics.com/vmagent/#relabel-debug
promscrape.dropOriginalLabels: "true"
remoteWrite:
- url: http://vmsingle-victoria.observability.svc:8429/api/v1/write
resources:
requests:
cpu: 3m
limits:
memory: 512Mi
statefulStorage:
volumeClaimTemplate:
spec:
storageClassName: openebs-hostpath
resources:
requests:
storage: 1Gi
2024-10-10 15:31:38 -05:00
securityContext:
runAsUser: 65534
runAsGroup: 65534
runAsNonRoot: true
fsGroup: 65534
2024-10-10 14:09:28 -05:00
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
app.kubernetes.io/instance: stack
app.kubernetes.io/name: vmagent