Skip to content

Commit

Permalink
chore(ci): set minimum replicas and loosen liveness probes (#1510)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Aug 15, 2024
1 parent d9f287c commit 9f3c31d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ jobs:
-p ZONE=${{ inputs.target }}
-p DB_PASSWORD='${{ secrets.DB_PASSWORD }}'
${{ github.event_name == 'pull_request' && '-p DB_PVC_SIZE=192Mi' || '' }}
${{ github.event_name == 'pull_request' && '-p MEMORY_REQUEST=100Mi' || '' }}
${{ github.event_name == 'pull_request' && '-p MEMORY_LIMIT=200Mi' || '' }}

deploy:
name: Deploy
Expand Down
2 changes: 1 addition & 1 deletion backend/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ objects:
app: ${NAME}-${ZONE}
name: ${NAME}-${ZONE}-${COMPONENT}
spec:
replicas: 1
replicas: ${{MIN_REPLICAS}}
selector:
matchLabels:
deployment: ${NAME}-${ZONE}-${COMPONENT}
Expand Down
6 changes: 4 additions & 2 deletions database/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ parameters:
- name: CPU_LIMIT
value: 75m
- name: MEMORY_REQUEST
value: 100Mi
value: 2Gi
- name: MEMORY_LIMIT
value: 200Mi
value: 4Gi
- name: DB_PVC_SIZE
description: Volume space available for data, e.g. 512Mi, 2Gi.
displayName: Database Volume Capacity
Expand Down Expand Up @@ -118,6 +118,8 @@ objects:
- bash
- '-ce'
- exec pg_isready -U $POSTGRES_USER -d "dbname=$POSTGRES_DB" -h 127.0.0.1 -p 5432
periodSeconds: 30
timeoutSeconds: 10
env:
- name: POSTGRES_DB
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Build static files
# Node Bullseye has npm
FROM node:18.20.4-bullseye-slim AS build
ENV NODE_OPTIONS "--max-old-space-size=3072"
ENV NODE_OPTIONS="--max-old-space-size=3072"

# Build
WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion frontend/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ objects:
app: ${NAME}-${ZONE}
name: ${NAME}-${ZONE}-${COMPONENT}
spec:
replicas: 1
replicas: ${{MIN_REPLICAS}}
selector:
matchLabels:
deployment: ${NAME}-${ZONE}-${COMPONENT}
Expand Down
2 changes: 1 addition & 1 deletion oracle-api/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ objects:
app: ${NAME}-${ZONE}
name: ${NAME}-${ZONE}-${COMPONENT}
spec:
replicas: 1
replicas: ${{MIN_REPLICAS}}
selector:
matchLabels:
deployment: ${NAME}-${ZONE}-${COMPONENT}
Expand Down

0 comments on commit 9f3c31d

Please sign in to comment.