Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
K

kuberhealthy

> DevOps
Open source

A Kubernetes operator for running synthetic checks as pods. Works great with Prometheus!

2.3K stars0 likes1 views
WebsiteGitHub

About

A Kubernetes operator for running synthetic checks as pods. Works great with Prometheus!

Kuberhealthy

Kuberhealthy is an operator for synthetic monitoring and continuous validation. It ships metrics to Prometheus and enables you to package your synthetic monitoring as Kubernetes manifests.

Why Kuberhealthy?

Kuberhealthy schedules, tracks, monitors, and manages Kubernetes pods for checks — which means your monitoring logic can:

  • Run multi-step workflows — simulate a real user: log in, create a record, verify it, clean it up
  • Use any language — Go, Python, Rust, bash, or anything that fits in a container
  • Own your checks as code — checks are Kubernetes manifests, so ship them alongside your app!

How it works

mermaid
graph TB
    prometheus["Prometheus /metrics"]
    browser["Web Interface"]

    subgraph cluster["Kubernetes Cluster"]
        svc["Kuberhealthy Service :80"]
        crds["HealthCheck CRDs"]
        controller["Kuberhealthy Controller"]
        pod["Check Pod\n(api-smoke-test)"]

        svc --> controller
        controller -->|watches| crds
        controller -->|schedules| pod
        pod -->|"POST /check"| controller
    end

    prometheus --> svc
    browser --> svc

Kuberhealthy provides the HealthCheck custom resource definition. Each HealthCheck tells Kuberhealthy to start a short-lived checker pod on a schedule.

The checker pod runs your validation logic, then reports back to Kuberhealthy. Results flow to the built-in status UI, JSON API, and Prometheus metrics endpoint.

Getting started

Installing Kuberhealthy is easy. Just apply the kustomize, ArgoCD, or Helm manifests and you're ready to start applying healthcheck resources.

  1. Install Kuberhealthy to your cluster:

    Helm (recommended)

    bash
    helm install kuberhealthy deploy/helm/kuberhealthy -n kuberhealthy --create-namespace

    Kustomize

    bash
    kubectl apply -k github.com/kuberhealthy/kuberhealthy/deploy/kustomize/base?ref=main

    ArgoCD

    bash
    kubectl apply -f deploy/argocd/kuberhealthy.yaml
  2. Port-forward the service:

    bash
    kubectl -n kuberhealthy port-forward svc/kuberhealthy 8080:80
  3. Open http://localhost:8080 to see the status UI, then apply a HealthCheck or build your own.

What a healthcheck CRD looks like

This is the core object Kuberhealthy manages. It tells the controller what checker container to run, how often to run it, and how long to wait before considering the run failed. You can use kubectl get healthcheck or kubectl get hc.

This example uses the built-in deployment check, which creates a test deployment, rolls it out, and tears it down on a schedule:

…

See CHECK_CREATION.md for the environment variables injected into every check pod and how to build your own.

Example Healthcheck Use

Apply your healthcheck check:

> kubectl apply -f api-smoke-test.yaml
healthcheck.kuberhealthy.github.io/api-smoke-test.yaml created

> kubectl get healthcheck
NAME              NAMESPACE      LAST RUN    AGE    OK
api-smoke-test    kuberhealthy   2m ago      2d     true

Consume Check Status with Prometheus:

/metrics (Prometheus)

kuberhealthy_check{check="api-smoke-test",namespace="kuberhealthy",status="1"} 1
kuberhealthy_check{check="db-connectivity",namespace="kuberhealthy",status="0"} 1
kuberhealthy_check_duration_seconds{check="api-smoke-test",namespace="kuberhealthy"} 0.23
kuberhealthy_check_success_total{check="api-smoke-test",namespace="kuberhealthy"} 142

Fetch the status by API:

/json

json
{
  "ok": true,
  "checks": {
    "kuberhealthy/api-smoke-test": {
      "ok": true,
      "errors": [],
      "lastRun": "2024-01-15T14:32:01Z",
      "runDuration": "230ms"
    }
  }
}

Writing checks

Get started with CHECK_CREATION.md and the HealthCheck registry, then pick a check client for your language:

Language Client
Go github.com/kuberhealthy/kuberhealthy/v3/pkg/checkclient
Python kuberhealthy
TypeScript @kuberhealthy/kuberhealthy
JavaScript @kuberhealthy/kuberhealthy
Rust kuberhealthy
Ruby kuberhealthy
Java Maven / Gradle
Bash Shell script helper

Example: Go check that validates an internal API

go
package main

import (
    "fmt"
    "net/http"

    "github.com/kuberhealthy/kuberhealthy/v3/pkg/checkclient"
)

func main() {
    resp, err := http.Get("http://my-api.default.svc.cluster.local/health")
    if err != nil {
        checkclient.ReportFailure([]string{fmt.Sprintf("request failed: %s", err)})
        return
    }
    defer resp.Body.Close()

    if resp.StatusCode != http.StatusOK {
        checkclient.ReportFailure([]string{fmt.Sprintf("unexpected status %d from /health", resp.StatusCode)})
        return
    }

    checkclient.ReportSuccess()
}

The check client handles KH_REPORTING_URL, KH_RUN_UUID, and deadline enforcement automatically.

Documentation

See the full documentation index in docs/README.md.

Adopters

See docs/ADOPTERS.md for organizations running Kuberhealthy in production.

Contributing

  • Read the Contributing Guide before opening a PR.
  • Browse open issues — new contributors should look for the good first issue tag.
  • Check contributions are especially welcome — see the HealthCheck registry for gaps.
  • Have feedback from running Kuberhealthy in production? Open a discussion or join Slack.

Community

  • Slack: #kuberhealthy in the Kubernetes Slack workspace
  • Monthly call: Every 24th of the month at 4:30 PM Pacific — download invite · join now
  • Issues: github.com/kuberhealthy/kuberhealthy/issues

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Gocicdcontinuous-deliverycontinuous-integrationcontinuous-testing

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理