Zero-Downtime Deployment
ale
supports zero-downtime deployment through port status monitoring and Healthz HTTP response values, suitable for web services and APIs.
Services that don’t expose ports do not support zero-downtime deployment.
Healthz Configuration
Health Check monitoring enables zero-downtime deployments by monitoring service status. During deployment, the system checks if the path entered in the Health Check field returns a 2XX HTTP response code. If no path is specified, the system defaults to checking the root path (/).
While web services typically use their index page for health checks, API services need a health check endpoint configured in your source code to use the Healthz feature. In Spring Boot, you can set up this endpoint using modules like Actuator or custom controllers. For other languages and frameworks, you can create custom health check endpoints.