Skip to content

Commit

Permalink
PTFE-1388 update HPA config and apiVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmet committed Jan 25, 2024
1 parent 16cd1f6 commit dc76334
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/artifacts/templates/autoscaler.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: autoscaling/v1
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ template "fullname" $ }}
Expand Down
16 changes: 14 additions & 2 deletions charts/artifacts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,25 @@ deployment:
## default: min = 1 and max = 1 (i.e. one at all times)
##
minReplicas: 1
maxReplicas: 1
maxReplicas: 2

## autoscalerSpec contains the dictionnary to insert in place
## of criterias to meet to scale up and down.
##
autoscalerSpec:
targetCPUUtilizationPercentage: 90
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 50
- type: Resource
resource:
name: memory
target:
type: AverageValue
averageValue: 500Mi

artifacts:
## Configure resource requests and limits
Expand Down

0 comments on commit dc76334

Please sign in to comment.