Adds /health endpoint for Kubernetes health checks
released October 22, 2025
npm install strapi-health-pluginA lightweight Strapi plugin that provides health check endpoints for monitoring and Kubernetes readiness/liveness probes.
/healthnpm install strapi-health-pluginAfter installation, rebuild your Strapi application:
npm run build
# or
strapi buildOnce installed, the plugin automatically exposes a health endpoint at:
GET /health{
"uptime": 19122.561740091,
"message": "OK",
"timestamp": 1696513452150
}uptime: Process uptime in secondsmessage: Status message ("OK" when healthy)timestamp: Current timestamp in millisecondsreadinessProbe:
httpGet:
path: /health
port: 1337
initialDelaySeconds: 30
periodSeconds: 10livenessProbe:
httpGet:
path: /health
port: 1337
initialDelaySeconds: 60
periodSeconds: 30HEALTHCHECK \
CMD curl -f http://localhost:1337/health || exit 1npm run build after installationpackage.json dependenciesThe health endpoint is publicly accessible by default. If you need to restrict access, you can modify the route configuration in your Strapi application.
Contributions are welcome! Please read our Contributing Guidelines before submitting PRs.
This project uses Changesets for automated releases:
npm run changeset # Add changeset after changes
git push # Triggers release PRFor security concerns, please see our Security Policy.
MIT © Remi Kristelijn
Made with ❤️ for the Strapi community
Share your work with the community and get it listed in the Strapi ecosystem for everyone to discover and use.
Submit
