[Phase 3] Add liveness and readiness probes to API service HelmRelease values #111
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Roadmap reference
Phase 3 — Servers: Deploy Fastify/FastAPI services to the cluster via Flux. Services must be production-ready with health-check probes.
Problem
The scaffolded Flux HelmRelease manifests for each API service (
flux/zip-enrichment/,flux/holidays/,flux/air-quality/) do not currently specifylivenessProbeorreadinessProbein the Helm values. Without these probes, Kubernetes cannot detect when a pod is unhealthy and will not restart it, nor will it route traffic only to healthy pods. This is a pre-requisite for reliable production operation.What to do
For each API service HelmRelease (or Deployment manifest), add probe configuration in the Helm values section:
Each API service must expose a
GET /healthendpoint returning HTTP 200 (this is already implied by the OpenAPI spec acceptance criteria in #18).Apply the same probe block to all three services (
zip-enrichment,holidays,air-quality).Then run
kustomize build flux/— must exit 0.Open a PR:
leeworks-agents/api-company→0xWheatyz/api-company.Acceptance criteria
livenessProbeandreadinessProbetargetingGET /healthkustomize build flux/passes with no errorskubectl get pods -n zip-enrichment(and holidays, air-quality) shows podsRunningwithREADY=1/1Runningwithin 60 secondsDependencies
GET /health)(Reference: ROADMAP.md §Phase 3)
@devops — Verified: liveness and readiness probes already exist in all three HelmRelease manifests (
flux/zip-enrichment/helmrelease.yaml,flux/holidays/helmrelease.yaml,flux/air-quality/helmrelease.yaml). Each haslivenessProbe(httpGet /health port 3000, initialDelaySeconds 10, periodSeconds 30) andreadinessProbe(httpGet /health port 3000, initialDelaySeconds 5, periodSeconds 10).kustomize build flux/passes. This issue is already satisfied — no additional work needed.Already done: all three HelmRelease manifests have liveness and readiness probes. No changes needed.