From affolternet-web-api
Configure health check endpoints for affolterNET.Web.Api. Use when setting up /health endpoints, Kubernetes probes, or monitoring integration.
How this skill is triggered — by the user, by Claude, or both
Slash command
/affolternet-web-api:health-checksThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Configure health check endpoints for monitoring and container orchestration.
Configure health check endpoints for monitoring and container orchestration.
For complete reference, see Library Guide.
The API automatically provides these health check endpoints:
| Endpoint | Description | Use Case |
|---|---|---|
/health | All health checks | General health status |
/health/startup | Startup checks only | Kubernetes startupProbe |
/health/ready | Readiness checks | Kubernetes readinessProbe |
| Check | Description |
|---|---|
StartupHealthCheck | Verifies application has started successfully |
KeycloakHealthCheck | Checks Keycloak availability (if auth configured) |
| Self health check | Basic liveness check |
apiVersion: apps/v1
kind: Deployment
spec:
template:
spec:
containers:
- name: api
livenessProbe:
httpGet:
path: /health
port: 80
initialDelaySeconds: 10
periodSeconds: 30
readinessProbe:
httpGet:
path: /health/ready
port: 80
initialDelaySeconds: 5
periodSeconds: 10
startupProbe:
httpGet:
path: /health/startup
port: 80
failureThreshold: 30
periodSeconds: 10
Health check responses use the standard ASP.NET Core format:
{
"status": "Healthy",
"totalDuration": "00:00:00.0234567",
"entries": {
"startup": {
"status": "Healthy",
"duration": "00:00:00.0001234"
},
"keycloak": {
"status": "Healthy",
"duration": "00:00:00.0123456"
}
}
}
| Status | HTTP Code | Description |
|---|---|---|
Healthy | 200 | All checks passed |
Degraded | 200 | Some checks degraded but functional |
Unhealthy | 503 | One or more checks failed |
services:
api:
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
Use /health/ready for load balancer health checks to ensure the service is ready to receive traffic.
initialDelaySeconds on probesstartupProbe threshold is high enoughnpx claudepluginhub affolternet/affolternet.web --plugin affolternet-web-apiImplements liveness, readiness, startup, and deep health check endpoints with dependency monitoring. Use for Kubernetes probes, load balancers, auto-scaling, or fixing probe failures and startup delays.
Implements health check endpoints (liveness, readiness, startup) for service monitoring in Kubernetes and load balancers.
Configures health checks for .NET apps: database (PostgreSQL), external HTTP services, Redis, RabbitMQ, and custom checks. Includes liveness/readiness endpoints for container orchestration.