Skip to content

Add support for Kubernetes health check

Nathan Perkins requested to merge nathanperkins/django-troop:health-check into devel

This adds a Kubernetes health check to the app and uses it to determine readiness. It allows the Ingress and Service to route requests to healthy pods, avoiding errors from pods which are initializing and not ready for traffic.

  • Use django-health-check to expose a health endpoint.
  • Update the deployment to send health check pings.

Fixes #43 (closed)

Reference: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-readiness-probes

Edited by Nathan Perkins

Merge request reports

Loading