Hi there! Iโm seeking recommendations for readiness and liveness probes when deploying Phoenix in Kubernetes ๐งต
For readiness and liveness probes when deploying Phoenix in Kubernetes, you can use the /healthz endpoint for health checks. This endpoint was added specifically for health checks in Phoenix.
Example Kubernetes Configuration:
```
apiVersion: apps/v1 kind: StatefulSet metadata: name: phoenix namespace: phoenix spec: replicas: 1 selector: matchLabels: app: phoenix template: metadata: labels: app: phoenix spec: containers: - name: phoenix image: arizephoenix/phoenix::latest ports:: - containerPort: 6006 - containerPort: 4317 readinessProbe: httpGet: path: /healthz port: 6006 initialDelaySeconds: 10 periodSeconds: 5 livenessProbe: httpGet: path: /healthz port: 6006 initialDelaySeconds: 30 periodSeconds: 10
LBKSThis configuration sets up both readiness and liveness probes to check the `/healthz` endpoint on port 6006.
Would you like more details on any specific part of this setup?
Sources:
- [chore: add /healthz route for healthchecks](https://github.com/Arize-ai/phoenix/pull/2800)
๐กย Hint: Mention RunLLM in the thread for followups.
/healthz seems reasonable for a liveness check. However, it might not be sufficient for a readiness check. Do you recommend the root path (/ on PHOENIX_PORT) for a readiness check?
Thank you, Mikyo! Really appreciate the help
