Merge pull request #772 from klinch0/monitoring-add-vpa-for-vmagent

[monitoring] add vpa for vmagent
This commit is contained in:
Timofei Larkin
2025-04-08 17:48:38 +04:00
committed by GitHub
2 changed files with 28 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ kind: VMAgent
metadata:
name: vmagent
spec:
shardCount: 1
externalLabels:
cluster: {{ .Values.vmagent.externalLabels.cluster }}
tenant: {{ .Values.vmagent.externalLabels.tenant }}

View File

@@ -0,0 +1,27 @@
apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
name: vpa-vmagent
spec:
targetRef:
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMAgent
name: vmagent
updatePolicy:
updateMode: Auto
resourcePolicy:
containerPolicies:
- containerName: config-reloader
minAllowed:
cpu: 100m
memory: 25Mi
maxAllowed:
cpu: 1000m
memory: 256Mi
- containerName: vmagent
minAllowed:
cpu: 100m
memory: 25Mi
maxAllowed:
cpu: 4000m
memory: 6G