first commit
This commit is contained in:
32
k8s/regional/hpa-region.yaml
Normal file
32
k8s/regional/hpa-region.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
apiVersion: autoscaling/v2
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: ${APP_NAME}-${REGION_ID}
|
||||
namespace: ${K8S_NAMESPACE}
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: ${APP_NAME}-${REGION_ID}
|
||||
minReplicas: ${HPA_MIN_REPLICAS}
|
||||
maxReplicas: ${HPA_MAX_REPLICAS}
|
||||
behavior:
|
||||
scaleUp:
|
||||
stabilizationWindowSeconds: 0
|
||||
policies:
|
||||
- type: Percent
|
||||
value: 100
|
||||
periodSeconds: 60
|
||||
scaleDown:
|
||||
stabilizationWindowSeconds: 300
|
||||
policies:
|
||||
- type: Percent
|
||||
value: 25
|
||||
periodSeconds: 60
|
||||
metrics:
|
||||
- type: Resource
|
||||
resource:
|
||||
name: cpu
|
||||
target:
|
||||
type: Utilization
|
||||
averageUtilization: ${HPA_CPU_TARGET}
|
||||
Reference in New Issue
Block a user