File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
charts/vineyard-operator/templates Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ apiVersion : autoscaling/v2
2+ kind : HorizontalPodAutoscaler
3+ metadata :
4+ name : vineyard-memory-hpa
5+ namespace : vineyard-system
6+ spec :
7+ scaleTargetRef :
8+ apiVersion : apps/v1
9+ kind : Deployment
10+ name : vineyard-controller-manager
11+ minReplicas : 2
12+ maxReplicas : 10
13+ metrics :
14+ - type : Resource
15+ resource :
16+ name : memory
17+ target :
18+ type : Utilization
19+ averageUtilization : 50 # Target 50% memory usage
20+ behavior :
21+ scaleUp :
22+ policies :
23+ - type : Pods
24+ value : 2 # Add 2 pods at once when scaling up
25+ periodSeconds : 15 # Check frequently during scale-up
26+ selectPolicy : Max
27+ stabilizationWindowSeconds : 0 # React immediately to spikes
28+ scaleDown :
29+ policies :
30+ - type : Percent
31+ value : 50 # Remove up to 50% of pods at once
32+ periodSeconds : 60
33+ stabilizationWindowSeconds : 300 # Wait 5 minutes before scaling down
You can’t perform that action at this time.
0 commit comments