Skip to content

Commit

Permalink
Fixed formatting issue.
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 9e736f0 commit e8933dd
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions tools/openshift/frontend.dc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ objects:
annotations:
openshift.io/generated-by: OpenShiftNewApp
creationTimestamp:
labels:
app: '${APP_NAME}-${BRANCH}'
branch: '${BRANCH}'
name: '${APP_NAME}-frontend-${ENVIRONMENT}'
Expand Down Expand Up @@ -118,25 +119,25 @@ objects:
termination: edge
insecureEdgeTerminationPolicy: Redirect
wildcardPolicy: None
# - 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
- 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 e8933dd

Please sign in to comment.