Module health

Module health 

Source
Expand description

Kubernetes-native health check endpoints (liveness, readiness, startup probes) Kubernetes-native health check endpoints

This module provides comprehensive health check endpoints following Kubernetes best practices:

  • Liveness probe: Indicates if the container is alive
  • Readiness probe: Indicates if the container is ready to accept traffic
  • Startup probe: Indicates if the container has finished initialization

These endpoints are essential for:

  • Kubernetes deployment orchestration
  • Load balancer health checks
  • Service discovery integration
  • Graceful shutdown coordination

Structs§

HealthDetails
Detailed health information
HealthManager
Health check manager for tracking service state
HealthResponse
Health check response structure

Enums§

ServiceStatus
Service initialization status

Functions§

health_router
Create health check router with all probe endpoints
health_router_with_prefix
Create health check router with custom prefix