Skip to content

Commit

Permalink
fix autoscaler
Browse files Browse the repository at this point in the history
  • Loading branch information
SoLetsDev committed May 30, 2023
1 parent 0602712 commit 4fea49d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/openshift/api.dc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ objects:
selector:
app: "${APP_NAME}-${BRANCH}"
deploymentconfig: "${APP_NAME}-${BRANCH}"
- apiVersion: autoscaling/v2beta1
- apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: "${APP_NAME}-${BRANCH}-cpu-autoscaler"
Expand All @@ -151,7 +151,9 @@ objects:
- type: Resource
resource:
name: cpu
targetAverageUtilization: 200
target:
type: Utilization
averageUtilization: 200
parameters:
- name: REPO_NAME
description: Application repository name
Expand Down

0 comments on commit 4fea49d

Please sign in to comment.