Skip to content

Commit 3a6e465

Browse files
authored
Merge pull request #573 from jfcoz/fix/resources
2 parents 750fcb6 + 559bcc7 commit 3a6e465

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ jobs:
8282
echo 'CORS=["https://api-platform.com", "http://localhost", "https://localhost", "http://localhost:3000"]' >> "$GITHUB_ENV"
8383
echo "NAMESPACE=prod-website" >> "$GITHUB_ENV"
8484
echo "REPLICA=1" >> "$GITHUB_ENV"
85-
echo "CPU_REQUEST=10m" >> "$GITHUB_ENV"
86-
echo "MEM_REQUEST=400Mi" >> "$GITHUB_ENV"
87-
echo "MEM_LIMIT=1400Mi" >> "$GITHUB_ENV"
8885
else
8986
CONTEXT=nonprod
9087
if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then
@@ -98,9 +95,6 @@ jobs:
9895
echo "REPLICA=1" >> "$GITHUB_ENV"
9996
echo "NAMESPACE=nonprod-website" >> "$GITHUB_ENV"
10097
echo 'CORS=["https://${{ env.RELEASE_NAME}}.apip.preprod-tilleuls.ovh", "http://localhost", "https://localhost", "http://localhost:3000"]' >> "$GITHUB_ENV"
101-
echo "CPU_REQUEST=5m" >> "$GITHUB_ENV"
102-
echo "MEM_REQUEST=100Mi" >> "$GITHUB_ENV"
103-
echo "MEM_LIMIT=600Mi" >> "$GITHUB_ENV"
10498
fi
10599
- name: HELM Deploy
106100
run: |
@@ -126,10 +120,6 @@ jobs:
126120
--set=pwa.image.repository=eu.gcr.io/${{ secrets.gke-project }}/website/pwa \
127121
--set=pwa.image.tag=${{ inputs.docker-images-version }} \
128122
--set=pwa.image.pullPolicy=Always \
129-
--set=pwa.resources.requests.cpu=${{ env.CPU_REQUEST }} \
130-
--set=pwa.resources.requests.memory=${{ env.MEM_REQUEST }} \
131-
--set=pwa.resources.limits.memory=${{ env.MEM_LIMIT }} \
132-
--set=pwa.replicaCount=${{ env.REPLICA }} \
133123
--set=bucket.s3Upstream=storage.googleapis.com \
134124
--set=bucket.s3Name=api-platform-website-v3 \
135125
--set=service.type=NodePort \
@@ -169,10 +159,6 @@ jobs:
169159
--set=pwa.image.repository=eu.gcr.io/${{ secrets.gke-project }}/website/pwa \
170160
--set=pwa.image.tag=${{ inputs.docker-images-version }} \
171161
--set=pwa.image.pullPolicy=Always \
172-
--set=pwa.resources.requests.cpu=${{ env.CPU_REQUEST }} \
173-
--set=pwa.resources.requests.memory=${{ env.MEM_REQUEST }} \
174-
--set=pwa.resources.limits.memory=${{ env.MEM_LIMIT }} \
175-
--set=pwa.replicaCount=${{ env.REPLICA }} \
176162
--set=php.corsAllowOrigin="^$(echo "${{ join(fromJSON(env.CORS), '|') }}" | sed 's/\./\\./g')$" \
177163
--set=github.key=${{ secrets.gh-key }} \
178164
--set=next.rootUrl=${{ env.URL }} \

helm/api-platform/values.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ php:
2020
- "192.168.0.0/16"
2121
resources:
2222
requests:
23-
cpu: 100m
23+
cpu: 50m
2424
memory: 100Mi
2525

2626
pwa:
@@ -32,10 +32,10 @@ pwa:
3232
tag: ""
3333
resources:
3434
requests:
35-
memory: 1400Mi
36-
cpu: 500m
35+
memory: 150Mi
36+
cpu: 50m
3737
limits:
38-
memory: 1400Mi
38+
memory: 300Mi
3939
podAnnotations:
4040
instrumentation.opentelemetry.io/inject-nodejs: "true"
4141

0 commit comments

Comments
 (0)