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 a6ffcb9 commit 9581a7b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
6 changes: 4 additions & 2 deletions tools/openshift/backend.dc.ocp4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ objects:
name: "${APP_NAME}-backend-${JOB_NAME}"
weight: 100
wildcardPolicy: None
- apiVersion: autoscaling/v2beta1
- apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: "${APP_NAME}-backend-${JOB_NAME}-cpu-autoscaler"
Expand All @@ -184,7 +184,9 @@ objects:
- type: Resource
resource:
name: cpu
targetAverageUtilization: 90
target:
type: Utilization
averageUtilization: 90
parameters:
- name: REPO_NAME
description: Application repository name
Expand Down
6 changes: 4 additions & 2 deletions tools/openshift/backend.dc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ objects:
name: "${APP_NAME}-backend-${JOB_NAME}"
weight: 100
wildcardPolicy: None
- apiVersion: autoscaling/v2beta1
- apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: "${APP_NAME}-backend-${JOB_NAME}-cpu-autoscaler"
Expand All @@ -182,7 +182,9 @@ objects:
- type: Resource
resource:
name: cpu
targetAverageUtilization: 90
target:
type: Utilization
averageUtilization: 90
parameters:
- name: REPO_NAME
description: Application repository name
Expand Down
6 changes: 4 additions & 2 deletions tools/openshift/frontend-static.dc.ocp4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
name: "${APP_NAME}-frontend-${JOB_NAME}"
weight: 100
wildcardPolicy: None
- apiVersion: autoscaling/v2beta1
- apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: "${APP_NAME}-frontend-${JOB_NAME}-cpu-autoscaler"
Expand All @@ -162,7 +162,9 @@
- type: Resource
resource:
name: cpu
targetAverageUtilization: 90
target:
type: Utilization
averageUtilization: 90
parameters:
- name: REPO_NAME
description: Application repository name
Expand Down
6 changes: 4 additions & 2 deletions tools/openshift/frontend-static.dc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
name: "${APP_NAME}-frontend-${JOB_NAME}"
weight: 100
wildcardPolicy: None
- apiVersion: autoscaling/v2beta1
- apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: "${APP_NAME}-frontend-${JOB_NAME}-cpu-autoscaler"
Expand All @@ -162,7 +162,9 @@
- type: Resource
resource:
name: cpu
targetAverageUtilization: 90
target:
type: Utilization
averageUtilization: 90
parameters:
- name: REPO_NAME
description: Application repository name
Expand Down

0 comments on commit 9581a7b

Please sign in to comment.