This commit is contained in:
Joseph Hanson 2024-10-06 20:28:11 -05:00
parent bd4040eb35
commit 03b4824734
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
2 changed files with 5 additions and 14 deletions

View file

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

View file

@ -3,33 +3,24 @@
apiVersion: operator.victoriametrics.com/v1beta1 apiVersion: operator.victoriametrics.com/v1beta1
kind: VMSingle kind: VMSingle
metadata: metadata:
name: cluster name: victoria
spec: spec:
# Possible units character: h(ours), d(ays), w(eeks), y(ears). Min 24h.
retentionPeriod: "6" # months if not specified
useStrictSecurity: true
extraArgs: extraArgs:
dedup.minScrapeInterval: 10s dedup.minScrapeInterval: 10s
maxLabelsPerTimeseries: "40" maxLabelsPerTimeseries: "40"
search.minStalenessInterval: 5m search.minStalenessInterval: 5m
# vmalert.proxyURL: http://vmalert-cluster.observability.svc:8080 # vmalert.proxyURL: http://vmalert-cluster.observability.svc:8080
replicaCount: 1
resources: resources:
requests: requests:
cpu: 5m cpu: 5m
limits: limits:
memory: 2Gi 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: storage:
accessModes: [ReadWriteOnce] accessModes: [ReadWriteOnce]
resources: resources:
requests: requests:
storage: 10Gi storage: 10Gi
storageClassName: openebs-hostpath 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