Skip to content

Commit

Permalink
Removed autoscaler temporarily.
Browse files Browse the repository at this point in the history
  • Loading branch information
weskubo-cgi authored and weskubo-cgi committed Oct 12, 2023
1 parent 03c40ab commit 9e736f0
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions tools/openshift/frontend.dc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,25 +118,25 @@ objects:
termination: edge
insecureEdgeTerminationPolicy: Redirect
wildcardPolicy: None
- apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: '${APP_NAME}-frontend-frontend-${ENVIRONMENT}-cpu-autoscaler'
spec:
scaleTargetRef:
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
name: '${APP_NAME}-frontend-${ENVIRONMENT}'
subresource: scale
minReplicas: ${{MIN_REPLICAS}}
maxReplicas: ${{MAX_REPLICAS}}
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 90
# - apiVersion: autoscaling/v2
# kind: HorizontalPodAutoscaler
# metadata:
# name: '${APP_NAME}-frontend-${ENVIRONMENT}-cpu-autoscaler'
# spec:
# scaleTargetRef:
# apiVersion: apps.openshift.io/v1
# kind: DeploymentConfig
# name: '${APP_NAME}-frontend-${ENVIRONMENT}'
# subresource: scale
# minReplicas: ${{MIN_REPLICAS}}
# maxReplicas: ${{MAX_REPLICAS}}
# metrics:
# - type: Resource
# resource:
# name: cpu
# target:
# type: Utilization
# averageUtilization: 90
parameters:
- name: REPO_NAME
description: Application repository name
Expand Down

0 comments on commit 9e736f0

Please sign in to comment.