Skip to content
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
7 changes: 5 additions & 2 deletions deploy/forge/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# Secrets are never written here. The team key comes from the `huawei-gateway`
# secret the platform provisioned (as GATEWAY_KEY); Fable's own settings come
# from a `fable-env` secret created once (docs/DEPLOY-FORGE.md).
# Quota check: requests 200m / 512Mi of 400m / 768Mi, limits 1 core / 1Gi of
# Quota check: requests 200m / 384Mi of 400m / 768Mi (512Mi while the site
# updates, when two of its pods overlap), limits 1 core / 1Gi of
# 2 cores / 2Gi, 2 pods of 10, 2 Services of 5, no persistent volume.
apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -130,7 +131,9 @@ spec:
initialDelaySeconds: 20
periodSeconds: 20
resources:
requests: { cpu: 100m, memory: 256Mi }
# 128Mi reserved: while the site updates, two copies run side by side
# next to the API (256 + 128 + 128 of the namespace's 768Mi).
requests: { cpu: 100m, memory: 128Mi }
limits: { cpu: 500m, memory: 512Mi }
---
apiVersion: v1
Expand Down
1 change: 1 addition & 0 deletions docs/DEPLOY-FORGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ kubectl rollout undo deployment/app
| --- | --- | --- |
| `ImagePullBackOff` | `regcred` missing or its token expired | Recreate the secret |
| Pod `Pending`, "exceeded quota" | Requests above the namespace quota | `kubectl describe resourcequota team-quota` |
| No API pod after an update; events say "exceeded quota" | The quota still counts pods that just stopped | Wait until `requests.memory` drops, then `kubectl rollout restart deployment/api` |
| Pod never Ready | The process did not start | `kubectl logs deploy/api --previous` |
| `api` exits at start naming unsafe settings | `fable-env` is missing a value | Recreate the secret from "Once" |
| `/health` says the database is not writable | The data directory is not writable by uid 10001 | Check `fsGroup: 10001` is still in the manifest |
Expand Down
Loading