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

chore(ci): resources and scaling #1475

Merged
merged 18 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
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
14 changes: 10 additions & 4 deletions backend/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ parameters:
- name: FORESTCLIENTAPI_ADDRESS
value: "https://nr-forest-client-api-prod.api.gov.bc.ca/api"
- name: CPU_REQUEST
value: 100m
value: 15m
- name: CPU_LIMIT
value: 300m
value: 60m
- name: MEMORY_REQUEST
value: 100Mi
value: 150Mi
- name: MEMORY_LIMIT
value: 500Mi
value: 450Mi
- name: MIN_REPLICAS
description: The minimum amount of replicas for the horizontal pod autoscaler.
value: "3"
Expand Down Expand Up @@ -204,3 +204,9 @@ objects:
target:
type: Utilization
averageUtilization: 80
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 80
8 changes: 4 additions & 4 deletions database/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ parameters:
description: Where to mount the PVC, subpath (e.g. data/)
value: /var/lib/postgresql
- name: CPU_REQUEST
value: 50m
value: 25m
- name: CPU_LIMIT
value: 115m
value: 75m
- name: MEMORY_REQUEST
value: 150Mi
value: 100Mi
- name: MEMORY_LIMIT
value: 250Mi
value: 200Mi
- name: DB_PVC_SIZE
description: Volume space available for data, e.g. 512Mi, 2Gi.
displayName: Database Volume Capacity
Expand Down
10 changes: 8 additions & 2 deletions frontend/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ parameters:
- name: CPU_LIMIT
value: 30m
- name: MEMORY_REQUEST
value: 30Mi
value: 20Mi
- name: MEMORY_LIMIT
value: 50Mi
value: 40Mi
- name: MIN_REPLICAS
description: The minimum amount of replicas for the horizontal pod autoscaler.
value: "3"
Expand Down Expand Up @@ -166,6 +166,12 @@ objects:
target:
type: Utilization
averageUtilization: 80
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 80
- apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
Expand Down
14 changes: 10 additions & 4 deletions oracle-api/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ parameters:
- name: DOMAIN
value: apps.silver.devops.gov.bc.ca
- name: CPU_REQUEST
value: 100m
value: 15m
- name: CPU_LIMIT
value: 500m
value: 50m
- name: MEMORY_REQUEST
value: 300Mi
value: 150Mi
- name: MEMORY_LIMIT
value: 500Mi
value: 225Mi
- name: ALLOWED_ORIGINS
description: Sets all the allowed request origins
value: "http://localhost:300*,https://*.apps.silver.devops.gov.bc.ca,https://*.nrs.gov.bc.ca"
Expand Down Expand Up @@ -236,3 +236,9 @@ objects:
target:
type: Utilization
averageUtilization: 80
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 80
Loading