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

36 lines
1.1 KiB
YAML
Raw Normal View History

2024-10-05 13:37:07 -05:00
---
# yaml-language-server: $schema=https://ks.hsn.dev/operator.victoriametrics.com/vmsingle_v1beta1.json
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMSingle
metadata:
name: cluster
spec:
extraArgs:
dedup.minScrapeInterval: 10s
maxLabelsPerTimeseries: "40"
search.minStalenessInterval: 5m
vmalert.proxyURL: http://vmalert-cluster.observability.svc:8080
replicaCount: 1
resources:
requests:
cpu: 5m
limits:
memory: 2Gi
# -- Data retention period. Possible units character: h(ours), d(ays), w(eeks), y(ears), if no unit character specified - month. The minimum retention period is 24h. See these [docs](https://docs.victoriametrics.com/single-server-victoriametrics/#retention)
retentionPeriod: "6"
storage:
accessModes: [ReadWriteOnce]
resources:
requests:
storage: 10Gi
storageClassName: openebs-hostpath
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
app.kubernetes.io/instance: cluster
app.kubernetes.io/name: vmsingle
useStrictSecurity: true