Skip to main content

Healthchecks on GKE Autopilot

Healthchecks on GKE Autopilot

Healthchecks is an open-source, self-hosted cron job and heartbeat monitoring service: scheduled tasks "ping" it on success, and it alerts you by email, Slack, SMS, or any of 100+ other integrations when a ping is late or missing. This module deploys Healthchecks on GKE Autopilot on top of the App_GKE foundation, which provisions and manages the shared Google Cloud and Kubernetes infrastructure.

This guide focuses on the cloud services Healthchecks uses and how to explore and operate them from the Google Cloud Console and the command line. For the mechanics that are common to every GKE application — Workload Identity, ingress, autoscaling, CI/CD, Cloud Armor, IAP, Binary Authorization, VPC Service Controls, backups, and the deployment lifecycle — refer to the App_GKE foundation guide rather than repeating them here.


What Healthchecks costs on RAD, and how that compares​

Running Healthchecks on GKE Autopilot pod in your own Google Cloud project costs about $106.53/month in Google Cloud charges, on top of a one-off 75-credit RAD module fee charged once at deploy time. Healthchecks is one of the few apps on this list with an official hosted SaaS run by the same project — Healthchecks.io — which makes a direct, named comparison possible. In a RAD-managed project the module fee drops to 67.5 credits (10% lower) and the running cost is metered hourly in credits instead of billed directly by Google — see Pause it for free below for the one RAD-managed advantage a self-hosted VPS cannot match — or see the Cloud Run guide for the lower-cost option.

What you pay on RAD​

Own projectRAD-managed project
Module fee (one-off)75 credits67.5 credits (10% lower)
Build time~3-6 credits per build, either way~3-6 credits per build, either way
Google Cloud running cost$106.53/month, billed by Google at list price~93 credits/day, metered at list price plus RAD's margin

Default running cost in your own project

ResourceUS$/month (Google list price, us-central1)
GKE Autopilot pod, 1x vCPU / 1 GiB$36.08
Cloud SQL for PostgreSQL, 1 vCPU / 3.75 GB, zonal, 10 GB SSD$51.02
NFS/cache file server (small VM)$13.43
Cloud NAT and networking$5.00
Cloud Storage (add-ons, backups)$1.00
GKE cluster management feeshared across every GKE app in the project; $0 if this is your only cluster, else ~73
Total$106.53

The GKE cluster management fee is excluded from the total above because it is shared across every GKE app in the project — $0 if this is the only one, otherwise roughly $73/month split across however many you run.

How it compares​

  • Healthchecks.io's own pricing (verified from its pricing page, 8 October 2026): Hobbyist is $0/month, Supporter $5/month, Business $20/month, and Business Plus $80/month (both paid plans also offer a 20% discount paid annually).
  • RAD's own-project running cost here includes a dedicated Cloud SQL Postgres instance and a small NFS file server, which Healthchecks.io's hosted tiers fold into their own infrastructure instead of billing you for separately.
  • A self-managed VPS alternative: Hetzner CPX22 (2 vCPU/4GB) runs about $24/mo, a DigitalOcean 2 vCPU/4GB Droplet is the same $24/mo, and a GCP Compute Engine e2-standard-2 (2 vCPU/8GB) is about $49/mo — cheaper than RAD's managed stack and than Healthchecks.io's Business tier, but with none of the managed backups, patching or monitoring either of the other two options include.

Pause it for free: delete a RAD-managed project, restore it when you need it​

This is the headline advantage of a RAD-managed project, and it costs nothing while paused. Deleting a RAD-managed project unlinks its billing first, then asks Google to delete the project outright — Google's own 30-day recoverable soft delete. Unlike deleting one module, this does not tear down Cloud SQL, any VM, or the compute resource one by one: the whole project simply stops, and nothing is charged while it waits, because billing is already unlinked.

Restoring, within 30 days and only by the project's owner, asks Google to undelete the project and reattaches its billing account, then asks you to run Update on each deployment to confirm everything came back. Because nothing was individually destroyed, that Update finds the same resources already there — it is a check, not a rebuild, and an Update never charges the module fee again. This costs only a handful of credits (under US$1) in total for a typical 2-3-deployment chain.

What this needs: you must own the project (not one RAD only manages billing for), you must restore it yourself within 30 days — after that Google deletes it for good — and restoring is admitted like creating a new project, so your purchased credit balance must still clear the tier's floor (100 credits for the sandbox tier most study/demo use fits). Google says most services are fully working again within 36 hours of a restore.

One real gap: nightly backups are written to a bucket inside the project, and that bucket has Cloud Storage's soft-delete explicitly turned off, so it is very likely gone as soon as you delete the project — even though the project itself is recoverable for 30 days. If you've customised Healthchecks and want to keep that work, copy a backup out (to Google Drive, or a bucket outside the project) before deleting. For a default install with nothing irreplaceable in it, this does not matter.

Pay only while you use it, the other way: delete and redeploy​

In your own project, or once 30 days have passed on a RAD-managed one, there is no free pause — deleting removes the resources for good, and bringing Healthchecks back means redeploying from scratch. That costs about 78-81 credits (the 75-credit module fee plus a build).

Deleting only saves money once Healthchecks would otherwise sit unused long enough to clear that redeploy cost against its own running cost — for Healthchecks, that's about 3 days or more. Most of that running cost is usually the database (and, where this module uses one, the shared file-server VM or GKE cluster) — those stop only once nothing else in the project uses them, so deleting this app while something else shares the project saves only its own compute share.

Keep data first: nightly backups go to a bucket inside the deployment and are deleted with it, so copy the latest backup out before deleting if you want to keep it.

Lab sessions and Managed Environments​

Lab sessions, for training: a trainer runs a session for a class. Each participant gets the app in their own Google Cloud project for 15 minutes to 24 hours, within an allowance the trainer sets. Either the trainer funds every place, or each participant pays for their own. Everything is deleted when the session ends and unused credits go back to the trainer.

Managed Environments, for consultancies: a partner runs the app for a client from a ring-fenced wallet it funds, and settles with the client directly. If the wallet runs low, billing pauses and the data is kept, so nobody receives an unexpected charge. At the end the partner hands the project over and the deployments become the client's own.

Credits can be bought in more than 20 currencies, including XAF, XOF, NGN, GHS, KES and ZAR, by card, bank transfer or mobile money.

Sources (8 October 2026): Google Cloud Billing Catalog API list prices; radmodules.dev/pricing for RAD's own fees and daily-credit estimates; Google's project delete/restore documentation for the pause/restore claims; https://healthchecks.io/pricing/ for the Healthchecks.io figures quoted above, verified 8 October 2026.

1. Overview​

Healthchecks runs as a Django/uWSGI Pod. The deployment wires together a focused set of Google Cloud services:

CapabilityGoogle Cloud serviceNotes
ComputeGKE AutopilotuWSGI pod, 1 vCPU / 512 MiB by default, single replica
DatabaseCloud SQL for PostgreSQL 15Required — the DB env var is explicitly set to postgres, overriding the image's SQLite fallback
SecretsSecret ManagerAuto-generated SECRET_KEY and initial admin password; database password
IngressCloud Load BalancingExternal LoadBalancer with a reserved static IP by default

Sensible defaults worth knowing up front:

  • PostgreSQL 15 is mandatory, and DB = "postgres" is set explicitly. The upstream image otherwise silently falls back to a throwaway, container-local SQLite database with no error.
  • The container image is genuinely prebuilt (healthchecks/healthchecks) — container_image_source defaults to "prebuilt", verified both in its own default AND in the main.tf forward (a module that gets either one wrong either builds from a non-existent Dockerfile or silently deploys the wrong image — see the Prowlarr_GKE precedent in this catalogue).
  • No scale-to-zero needed on GKE. Unlike the Cloud Run variant, a GKE Deployment simply runs its configured replica count continuously, so the co-located sendalerts/sendreports alert loop is always live with zero extra configuration — there is no GKE equivalent of cpu_always_allocated.
  • No dedicated health endpoint. Startup/liveness probes target / (the public login page). ALLOWED_HOSTS = "*" is set so the kubelet's own internal probe Host header is never rejected by Django's host validation.
  • The initial admin account is seeded once, not self-healing. An admin-bootstrap init Job runs migrations and creates the superuser (admin_email / a generated Secret Manager password) via Django's stock createsuperuser --noinput. Because GKE's init-job ordering is not as strict as Cloud Run's (a job can be scheduled before the main Deployment's own first boot), the job runs its own migration first rather than assuming the schema already exists.
  • Outbound email is a placeholder by default. DEFAULT_FROM_EMAIL defaults to healthchecks@example.org. Configure real EMAIL_HOST/EMAIL_HOST_USER/ EMAIL_HOST_PASSWORD post-deploy or alerts will fail to actually deliver.
  • No Redis, no object storage. Healthchecks stores all state — checks, pings, users, alert configuration — in PostgreSQL alone.
  • service_type = LoadBalancer and reserve_static_ip = true — Healthchecks is a browser-facing web UI, so it gets a stable public IP by default.

2. Google Cloud Services & How to Explore Them​

All commands assume you have run gcloud container clusters get-credentials <cluster> --region <region> --project <project> and that PROJECT, REGION, and NAMESPACE are set. The namespace and other identifiers are reported in the deployment Outputs.

A. GKE Autopilot — the Healthchecks workload​

Healthchecks runs as a single-replica Deployment on Autopilot, which bills for the CPU/memory the pod actually requests.

  • Console: Kubernetes Engine → Workloads → select the Healthchecks workload for pods, revisions, and events. Kubernetes Engine → Services & Ingress shows the external IP.
  • CLI:
    kubectl get pods,svc -n "$NAMESPACE"
    kubectl logs -n "$NAMESPACE" deploy/<service-name> --tail=100

See App_GKE for Autopilot scheduling and the workload type (Deployment vs StatefulSet).

B. Cloud SQL for PostgreSQL 15​

Healthchecks stores all application data (checks, pings, integrations, users, alert history) in a managed Cloud SQL for PostgreSQL 15 instance. Pods reach it privately through the Cloud SQL Auth Proxy sidecar over 127.0.0.1. On first deploy, initialization Jobs create the application database/role and seed the initial admin account.

  • Console: SQL → select the instance for connections, backups, flags, and metrics.
  • CLI:
    gcloud sql instances list --project "$PROJECT"
    gcloud sql instances describe <instance-name> --project "$PROJECT"
    gcloud sql connect <instance-name> --user=<db-user> --database=<db-name> --project "$PROJECT"

The instance name, database name, user, and the Secret Manager secret holding the password are all surfaced in the Outputs. For the connection model, automated backups, and password rotation, see App_GKE.

C. Secret Manager​

Two cryptographic values are generated automatically and stored in Secret Manager: SECRET_KEY (Django session/CSRF signing key) and ADMIN_PASSWORD (the initial superuser password, seeded once). The database password is managed separately by the foundation.

  • Console: Security → Secret Manager.
  • CLI:
    gcloud secrets list --project "$PROJECT" --filter="name~healthchecks"
    gcloud secrets versions access latest --secret=<secret-name> --project "$PROJECT"

See App_GKE for the Secret Store CSI integration and rotation.

D. Networking & ingress​

By default the workload is exposed through an external Cloud Load Balancing IP, reserved as a static IP so the address survives redeploys.

  • Console: Network services → Load balancing; VPC network → IP addresses.
  • CLI:
    kubectl get svc -n "$NAMESPACE"
    gcloud compute addresses list --project "$PROJECT"

See App_GKE for custom domains and static IP details.

E. Cloud Logging & Monitoring​

Pod stdout/stderr (including the co-located sendalerts/sendreports background workers) flow to Cloud Logging; GKE and Cloud SQL metrics flow to Cloud Monitoring.

  • Console: Logging → Logs Explorer; Monitoring → Dashboards / Alerting.
  • CLI:
    gcloud logging read 'resource.type="k8s_container" AND resource.labels.namespace_name="'"$NAMESPACE"'"' \
    --project "$PROJECT" --limit 50

3. Healthchecks Application Behaviour​

  • First-deploy database setup. The db-init initialization Job runs using postgres:15-alpine, connecting through the Cloud SQL Auth Proxy to idempotently create the application role and database.
  • Admin account bootstrap. The admin-bootstrap Job (using the Healthchecks image itself) runs manage.py migrate --noinput, then manage.py createsuperuser --noinput --username admin --email <admin_email> (password from a generated Secret Manager secret). GKE's execute_on_apply setting only gates whether Terraform waits for the job, not whether Kubernetes schedules it immediately — so the job replicates the migration step itself rather than assuming the main Deployment has already booted and migrated.
  • Database migrations also run on every normal container start of the main Deployment (the image's uwsgi.ini has hook-pre-app = exec:./manage.py migrate built in), so upgrading application_version applies schema changes automatically.
  • The sendalerts/sendreports background loop is co-located in the same container, started automatically by the image's own uwsgi.ini alongside the web server — no separate worker Deployment exists. Because GKE Deployments don't scale to zero on their own, this loop runs continuously as long as the Deployment has at least one replica (the default).
  • Health path. Startup and liveness probes target / — Healthchecks has no dedicated health endpoint; the root login page always responds unauthenticated and would 500 (not render) if the database connection were broken.
  • Inspect job execution:
    kubectl get jobs -n "$NAMESPACE"
    kubectl logs -n "$NAMESPACE" job/<job-name>

4. Configuration Variables​

Variables are grouped exactly as they appear on the deployment platform. Only settings specific to or notable for Healthchecks are listed; every other input is inherited from App_GKE with its standard behaviour and defaults.

Group 3 — Application Identity​

VariableDefaultDescription
application_namehealthchecksBase name for resources. Do not change after first deploy.
admin_emailadmin@techequity.cloudEmail/username for the initial superuser, seeded once.
default_from_emailhealthchecks@example.orgPlaceholder sender address until real SMTP is configured.

Group 4 — Runtime & Scaling​

VariableDefaultDescription
container_image_sourceprebuiltThe official image needs no custom build.
container_image""Leave empty to use healthchecks/healthchecks:<application_version>.
container_port8000The upstream image's uWSGI server binds here (docker/uwsgi.ini).
enable_cloudsql_volumetrueCloud SQL Auth Proxy sidecar — DB_HOST resolves to 127.0.0.1, which the discrete env var accepts verbatim.

Group 6 — GKE Backend & Cluster​

VariableDefaultDescription
service_typeLoadBalancerPublic web UI — exposed externally by default.
workload_typenull (effective: Deployment)Stateless — all state lives in PostgreSQL.

Group 13 — Filesystem (NFS)​

VariableDefaultDescription
enable_nfstrueInherited default. Healthchecks needs no shared filesystem, so set it to false when deploying.

Group 15 — Redis Cache & Queue​

VariableDefaultDescription
enable_redisfalseNot used — Healthchecks has no documented Redis integration.

Group 16 — Database Backend​

VariableDefaultDescription
database_typePOSTGRESFixed; MySQL/SQLite are not wired through this module.
application_database_namehealthchecks_dbImmutable after first deploy.
application_database_userhealthchecks_userImmutable after first deploy.

Group 19 — Custom Domain, Static IP & Networking​

VariableDefaultDescription
reserve_static_iptrueStable external IP across redeploys.

5. Outputs​

OutputDescription
service_nameKubernetes Service name.
namespaceNamespace the workload runs in.
service_external_ipExternal LoadBalancer IP.
service_urlURL to reach Healthchecks.
database_instance_nameCloud SQL instance name.
database_name / database_userApplication database name / user.
database_password_secretSecret Manager secret holding the DB password.
database_host / database_portDB endpoint (127.0.0.1 via the Auth Proxy) / port.
container_image / container_registryDeployed image and Artifact Registry repo.
initialization_jobsNames of the setup jobs.
deployment_id / tenant_id / resource_prefixNaming identifiers.
project_id / project_numberProject identifiers.
kubernetes_readyWhether the cluster/workload is ready.

6. Configuration Pitfalls & Sensible Defaults​

Risk: Critical (data loss / outage / security) — High (service degraded) — Medium (cost or partial degradation) — Low (minor).

SettingSensible valueRiskConsequence if wrong
DB (auto-set)"postgres"CriticalIf somehow unset, the app silently uses a throwaway local SQLite DB — checks and alert history vanish on every restart, with no error.
container_image_sourceprebuiltCriticalSwitching to custom with no Dockerfile in Healthchecks_Common/scripts fails the Kaniko build.
ADMIN_PASSWORD (auto-generated)Retrieve once, rotate via UI afterMediumThe seeded password is only set on the FIRST successful admin-bootstrap run; re-running the job does not update it.
DEFAULT_FROM_EMAIL / SMTP varsConfigure real SMTP post-deployHighLeft at the placeholder default, sendalerts logs delivery errors instead of actually notifying anyone of a missed check-in.
ALLOWED_HOSTS (auto-set to "*")Leave as-is unless you have a specific reasonLowDisabling Django's Host header validation entirely is an accepted trade-off here to keep platform health probes working.
application_database_name / application_database_userSet onceCriticalImmutable after first deploy; renaming recreates the DB/user and destroys all data.
enable_cloudsql_volumetrueHighThe Auth Proxy sidecar is required for PostgreSQL connectivity on GKE.

For the foundation behaviour referenced throughout — IAM and Workload Identity, autoscaling, ingress and certificates, CI/CD, Cloud Armor, IAP, Binary Authorization, VPC-SC, backups, and image mirroring — see App_GKE. Healthchecks-specific application configuration shared with the Cloud Run variant is described in Healthchecks_Common.

Need RAD to do something it does not do yet? Request it on the roadmap, or vote on what is already there.