Skip to content

Commit c535355

Browse files
authored
PTFE-1388 update HPA config and apiVersion (#108)
1 parent 16cd1f6 commit c535355

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

charts/artifacts/templates/autoscaler.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: autoscaling/v1
1+
apiVersion: autoscaling/v2
22
kind: HorizontalPodAutoscaler
33
metadata:
44
name: {{ template "fullname" $ }}

charts/artifacts/values.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,19 @@ deployment:
8686
## of criterias to meet to scale up and down.
8787
##
8888
autoscalerSpec:
89-
targetCPUUtilizationPercentage: 90
89+
metrics:
90+
- type: Resource
91+
resource:
92+
name: cpu
93+
target:
94+
type: Utilization
95+
averageUtilization: 50
96+
- type: Resource
97+
resource:
98+
name: memory
99+
target:
100+
type: AverageValue
101+
averageValue: 500Mi
90102

91103
artifacts:
92104
## Configure resource requests and limits

0 commit comments

Comments
 (0)