Skip to content

Commit

Permalink
Merge pull request #60 from petracihalova/resources-limit-request
Browse files Browse the repository at this point in the history
[RHCLOUD-32616] updated limits and requests for cpu and memory for uhc auth proxy containers
  • Loading branch information
lpichler committed May 13, 2024
2 parents 93faa97 + 26ef49d commit 6e2b320
Showing 1 changed file with 31 additions and 19 deletions.
50 changes: 31 additions & 19 deletions openshift/uhc-auth-proxy-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,6 @@ apiVersion: v1
kind: Template
metadata:
name: uhc-auth-proxy-template
parameters:
- name: REGISTRY_IMG
required: true
- name: CHANNEL
value: staging
- name: IMAGE_TAG
value: latest
- name: OPENSHIFT_API_TARGET
value: https://api.openshift.com/api/accounts_mgmt/v1/current_account
- name: REPLICAS
description: The number of replicas to use in the deployment
value: '1'
- name: LOG_LEVEL
required: true
value: INFO
objects:
- apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -123,11 +108,11 @@ objects:
timeoutSeconds: 60
resources:
limits:
cpu: 500m
memory: 500Mi
cpu: ${CPU_LIMIT}
memory: ${MEMORY_LIMIT}
requests:
cpu: 100m
memory: 250Mi
cpu: ${CPU_REQUESTS}
memory: ${MEMORY_REQUESTS}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
Expand Down Expand Up @@ -155,3 +140,30 @@ objects:
app: uhc-auth-proxy
sessionAffinity: None
type: ClusterIP
parameters:
- name: REGISTRY_IMG
required: true
- name: CHANNEL
value: staging
- name: IMAGE_TAG
value: latest
- name: OPENSHIFT_API_TARGET
value: https://api.openshift.com/api/accounts_mgmt/v1/current_account
- name: REPLICAS
description: The number of replicas to use in the deployment
value: '1'
- name: LOG_LEVEL
required: true
value: INFO
- description: cpu limit for service
name: CPU_LIMIT
value: 250m
- description: memory limit for service
name: MEMORY_LIMIT
value: 400Mi
- description: requested cpu for service
name: CPU_REQUESTS
value: 50m
- description: requested memory for service
name: MEMORY_REQUESTS
value: 200Mi

0 comments on commit 6e2b320

Please sign in to comment.