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): set minimum replicas and loosen liveness probes #1510

Merged
merged 5 commits into from
Aug 15, 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
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
Loading