You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
915 B
39 lines
915 B
# apiVersion: autoscaling/v1
|
|
# kind: HorizontalPodAutoscaler
|
|
# metadata:
|
|
# name: {{ .Release.Name }}-hpa
|
|
# spec:
|
|
# scaleTargetRef:
|
|
# apiVersion: apps/v1
|
|
# kind: Deployment
|
|
# name: {{ .Release.Name }}-hpa
|
|
# minReplicas: 1
|
|
# maxReplicas: 5
|
|
# targetCPUUtilizationPercentage: 20
|
|
# # metrics:
|
|
# # - type: Resource
|
|
# # resource:
|
|
# # name: cpu
|
|
# # targetAverageUtilization: 80
|
|
# # - type: Resource
|
|
# # resource:
|
|
# # name: memory
|
|
# # targetAverageValue: 200Mi
|
|
apiVersion: autoscaling/v2
|
|
kind: HorizontalPodAutoscaler
|
|
metadata:
|
|
name: {{ .Release.Name }}-hpa
|
|
spec:
|
|
minReplicas: 1
|
|
maxReplicas: 5
|
|
metrics:
|
|
- resource:
|
|
name: cpu
|
|
target:
|
|
averageUtilization: 50
|
|
type: Utilization
|
|
type: Resource
|
|
scaleTargetRef:
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
name: {{ .Release.Name }}-application
|
|
|