Add Kubernetes style health checks to your Craft site.
This plugin requires Craft CMS 3.x / 4.x
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require customd/healthz
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for Healthz.
This plugin will provide an endpoint that allows health checks on Docker or Kubernetes workflows. Since Kubernetes is eating the world, it defaults to healthz/liveness
, which is the default for Kubernetes.
Setup your Kubernetes and choose the default health check url (e.g. healthz/liveness
or healthz/readiness
).
Brought to you by Jason McCallister