Won-Bae Seo
10/14/2025, 6:03 PMJD Baudean
10/14/2025, 6:48 PMALTER DB command to remove the scaled down CNsWon-Bae Seo
10/14/2025, 6:53 PMJD Baudean
10/14/2025, 7:52 PMJD Baudean
10/14/2025, 8:09 PMautoScalingPolicy: #DEPLOY-VALUE
# you can select different versions of HPA (Horizontal Pod Autoscaler) based on the Kubernetes version you are
# using to ensure compatibility and adaptability. the default version is v2beta2. #DEPLOY-VALUE: v2beta2 is OBE!
maxReplicas: 10 #DEPLOY-VALUE - Can increase post-deploy by updating this value and running 'helm upgrade'
minReplicas: 1
hpaPolicy: #DEPLOY-VALUE
metrics:
- type: Resource
resource:
name: memory
target:
averageUtilization: 30
type: Utilization
- type: Resource
resource:
name: cpu
target:
averageUtilization: 30
type: Utilization
behavior:
scaleUp:
policies:
- type: Pods
value: 1
periodSeconds: 10
scaleDown:
# The stabilization window is the time HPA must wait after a scale-up
# or before a scale-down, ensuring the low utilization is sustained.
stabilizationWindowSeconds: 300 # 5 minutes minimum recommended
# Policies define HOW scale-down happens. You can scale down by
# a percentage of current pods, or a fixed number of pods.
policies:
- type: Percent
value: 100 # Allow scaling down by up to 100% of replicas
periodSeconds: 30 # Check every 30 seconds
selectPolicy: Max # Select the policy that allows the largest reductionJD Baudean
10/15/2025, 2:14 PM