App requirements
There’re some requirements that your app should meet so we can easily manage it in the k8s cluster. Here’re the steps to check before proceeding to the deployment.
If all of these requirements are met, the deployment process will be easy, smooth and quick as most of the things are pre-configured.
-
The app must have a
Section titled “The app must have a /health endpoint”/healthendpointWe use this endpoint for readiness probe. When writing the code for this endpoint, not only return 200 but also check actual service dependencies. For example, try reaching the database or any external API service you use.
Expectations:
- Healthy
HTTP 200 - Unhealthy
HTTP 503 - Responce time <100ms
- Healthy
-
The app must have a
Section titled “The app must have a /metrics endpoint”/metricsendpointBasic application metrics for monitoring and alerting.
-
The app runs on port
Section titled “The app runs on port 8080”8080It’s hardcoded to be 8080. If you need HTTPS, use 8443.
-
The app is configured with environment variables
Section titled “The app is configured with environment variables”