mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-01-27 18:18:41 +00:00
Merge pull request #772 from klinch0/monitoring-add-vpa-for-vmagent
[monitoring] add vpa for vmagent
This commit is contained in:
@@ -3,6 +3,7 @@ kind: VMAgent
|
||||
metadata:
|
||||
name: vmagent
|
||||
spec:
|
||||
shardCount: 1
|
||||
externalLabels:
|
||||
cluster: {{ .Values.vmagent.externalLabels.cluster }}
|
||||
tenant: {{ .Values.vmagent.externalLabels.tenant }}
|
||||
|
||||
27
packages/system/monitoring-agents/templates/vpa.yaml
Normal file
27
packages/system/monitoring-agents/templates/vpa.yaml
Normal 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
|
||||
Reference in New Issue
Block a user