diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-05 23:29:37 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-05 23:29:37 +0300 |
| commit | 29b171e1f3132db02285b64a441d4336c54265cc (patch) | |
| tree | 01dd6be5ed0491466ee1d2b1a713ee7876cc6882 | |
| parent | 4b059c9c5e7dd5a5ff584b3f10c95b398f04c339 (diff) | |
immich: relax postgres probes and add resource limits
- Increase liveness probe tolerance (60s delay, 30s period, 10s timeout, 6 failures)
- Increase readiness probe tolerance (15s delay, 10s period, 5s timeout, 6 failures)
- Add resource requests (100m CPU, 512Mi RAM) and limits (2Gi RAM)
- Fixes crash loop caused by probe killing postgres during recovery
Amp-Thread-ID: https://ampcode.com/threads/T-019d5f54-27f2-740c-ac41-0f980e7aecd3
Co-authored-by: Amp <amp@ampcode.com>
| -rw-r--r-- | f3s/immich/helm-chart/templates/postgres.yaml | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/f3s/immich/helm-chart/templates/postgres.yaml b/f3s/immich/helm-chart/templates/postgres.yaml index 58ae7df..f4e32ad 100644 --- a/f3s/immich/helm-chart/templates/postgres.yaml +++ b/f3s/immich/helm-chart/templates/postgres.yaml @@ -47,26 +47,32 @@ spec: secretKeyRef: name: immich-db-secret key: password + resources: + requests: + cpu: 100m + memory: 512Mi + limits: + memory: 2Gi livenessProbe: exec: command: - /bin/sh - -c - pg_isready -U immich -d immich - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - failureThreshold: 3 + initialDelaySeconds: 60 + periodSeconds: 30 + timeoutSeconds: 10 + failureThreshold: 6 readinessProbe: exec: command: - /bin/sh - -c - pg_isready -U immich -d immich - initialDelaySeconds: 10 - periodSeconds: 5 - timeoutSeconds: 3 - failureThreshold: 3 + initialDelaySeconds: 15 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 6 volumeMounts: - name: postgres-data mountPath: /var/lib/postgresql/data |
