mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-03-21 18:41:10 +00:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced resource management for the VMCluster resource, specifically for the `vmstorage` component. - Added resource specifications including memory limits and CPU requests. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
{{- range .Values.metricsStorages }}
|
|
---
|
|
apiVersion: operator.victoriametrics.com/v1beta1
|
|
kind: VMCluster
|
|
metadata:
|
|
name: {{ .name }}
|
|
spec:
|
|
replicationFactor: 2
|
|
retentionPeriod: "3"
|
|
vminsert:
|
|
replicaCount: 2
|
|
resources: {}
|
|
vmselect:
|
|
replicaCount: 2
|
|
resources:
|
|
limits:
|
|
memory: 1000Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 500Mi
|
|
extraArgs:
|
|
search.maxUniqueTimeseries: "600000"
|
|
vmalert.proxyURL: http://vmalert-{{ .name }}.{{ $.Release.Namespace }}.svc:8080
|
|
dedup.minScrapeInterval: "15s"
|
|
cacheMountPath: /select-cache
|
|
storage:
|
|
volumeClaimTemplate:
|
|
spec:
|
|
{{- with .storageClassName }}
|
|
storageClassName: {{ . }}
|
|
{{- end }}
|
|
resources:
|
|
requests:
|
|
storage: 2Gi
|
|
vmstorage:
|
|
replicaCount: 2
|
|
resources:
|
|
limits:
|
|
memory: 1000Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 500Mi
|
|
storage:
|
|
volumeClaimTemplate:
|
|
spec:
|
|
{{- with .storageClassName }}
|
|
storageClassName: {{ . }}
|
|
{{- end }}
|
|
resources:
|
|
requests:
|
|
storage: {{ .storage }}
|
|
storageDataPath: /vm-data
|
|
{{- end }}
|