Deploy OpenEvidence clinical AI integrations to production healthcare environments with canary releases, Kubernetes manifests, health checks, and rollback procedures.
openevidence-ci-integration)Define environment configs (dev/staging/prod) with baseUrl, timeout, retries, secret paths, and feature flags.
Build GitHub Actions workflow with test -> build -> deploy-staging -> deploy-production stages. Use canary releases for production (no-traffic deploy, 10% canary, monitor, full rollout).
Create Deployment (3 replicas), Service, Ingress, and HPA manifests. Use K8s secrets for API credentials, liveness/readiness probes against /health.
Create /health (basic) and /health/openevidence (deep) endpoints that verify API connectivity and report latency.
Create rollback script that lists recent revisions, identifies previous, and shifts traffic back with health verification.
| Deployment Issue | Detection | Resolution |
|---|---|---|
| Health check fails | Readiness probe | Rollback to previous revision |
| High error rate | Monitoring alert | Rollback, investigate logs |
| Secret missing | Container fails to start | Check secret manager |
| Rate limit hit | 429 errors spike | Scale down, check quotas |
gcloud run deploy clinical-evidence-api-staging \
--image $IMAGE --region us-central1 \
--set-env-vars NODE_ENV=staging \
--set-secrets OPENEVIDENCE_API_KEY=openevidence-staging-api-key:latest
gcloud run services update-traffic clinical-evidence-api \
--region us-central1 --to-revisions PREVIOUS_REVISION=100
See detailed implementation for advanced patterns.