Health check endpoint usage

Airlock IAM provides health check HTTP endpoints that can be used to check if IAM is running (liveness) or ready to process requests (readiness).

Usage of health checks in Kubernetes

The following code block is an example of a health check for Kubernetes:

copy
env: 
  - name: IAM_HEALTH_ADDRESS 
    value: .* 
livenessProbe: 
  httpGet: 
    path: /health/live 
    port: 8443 
    scheme: HTTPS 
  initialDelaySeconds: 120 
readinessProbe: 
  httpGet: 
    path: /health/ready 
    port: 8443 
    scheme: HTTPS 
  initialDelaySeconds: 120

Usage of health checks with Docker Compose

The following code block is an example of a health check for Docker Compose:

copy
healthcheck: 
  test: "curl -fksS 'https://localhost:8443/health/live' || exit 1"

Usage of health checks in a dockerfile

The following code block is an example of a health check for dockerfile:

copy
HEALTHCHECK CMD curl -fksS 'https://localhost:8443/health/live' || exit 1