Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RHCLOUD-32616] updated limits and requests for cpu and memory for uhc auth proxy containers #60

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading