Skip to content
This repository was archived by the owner on Jan 7, 2026. It is now read-only.

Commit 133a280

Browse files
committed
fix: k8s probes taking too long
1 parent 714149d commit 133a280

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/production.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ jobs:
6666
kubectl apply -f rendered.yml --dry-run=server
6767
kubectl apply -f rendered.yml
6868
sleep 3
69-
kubectl wait --for condition=ready --timeout 30s pods -l "commit_sha=${{ github.sha }}" || \
69+
kubectl wait --for condition=ready --timeout 90s pods -l "commit_sha=${{ github.sha }}" || \
7070
{ kubectl get pods && exit 1; }

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
run: |
7373
kubectl apply -f rendered.yml
7474
sleep 3
75-
kubectl wait --for condition=ready --timeout 30s pods -l "commit_sha=${{ github.sha }}" || \
75+
kubectl wait --for condition=ready --timeout 90s pods -l "commit_sha=${{ github.sha }}" || \
7676
{ kubectl get pods && exit 1; }
7777
7878
- uses: actions/github-script@v5

k8s/backend_components.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,19 @@
2323
path='/.well-known/apollo/server-health',
2424
scheme='HTTP'
2525
),
26-
initialDelaySeconds=10,
27-
periodSeconds=15,
28-
timeoutSeconds=3
26+
initialDelaySeconds=5,
27+
periodSeconds=10,
28+
timeoutSeconds=3,
29+
failureThreshold=5,
2930
)
3031

3132
worker_probe = Probe(
3233
exec=ExecAction(
3334
command="ps -p 1".split()
3435
),
35-
initialDelaySeconds=8,
36-
periodSeconds=30
36+
initialDelaySeconds=5,
37+
periodSeconds=20,
38+
failureThreshold=5,
3739
)
3840

3941

0 commit comments

Comments
 (0)