diff --git a/tools/openshift/backend.dc.ocp4.yaml b/tools/openshift/backend.dc.ocp4.yaml index fe8a1d6..0a7ebeb 100644 --- a/tools/openshift/backend.dc.ocp4.yaml +++ b/tools/openshift/backend.dc.ocp4.yaml @@ -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" @@ -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 diff --git a/tools/openshift/backend.dc.yaml b/tools/openshift/backend.dc.yaml index 60d688e..66f4154 100644 --- a/tools/openshift/backend.dc.yaml +++ b/tools/openshift/backend.dc.yaml @@ -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" @@ -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 diff --git a/tools/openshift/frontend-static.dc.ocp4.yaml b/tools/openshift/frontend-static.dc.ocp4.yaml index 8172d61..e465371 100644 --- a/tools/openshift/frontend-static.dc.ocp4.yaml +++ b/tools/openshift/frontend-static.dc.ocp4.yaml @@ -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" @@ -162,7 +162,9 @@ - type: Resource resource: name: cpu - targetAverageUtilization: 90 + target: + type: Utilization + averageUtilization: 90 parameters: - name: REPO_NAME description: Application repository name diff --git a/tools/openshift/frontend-static.dc.yaml b/tools/openshift/frontend-static.dc.yaml index 62a004c..64db1ce 100644 --- a/tools/openshift/frontend-static.dc.yaml +++ b/tools/openshift/frontend-static.dc.yaml @@ -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" @@ -162,7 +162,9 @@ - type: Resource resource: name: cpu - targetAverageUtilization: 90 + target: + type: Utilization + averageUtilization: 90 parameters: - name: REPO_NAME description: Application repository name