cluster-health-monitor

module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2025 License: MIT

README

Cluster Health Monitor

A Kubernetes cluster health monitoring tool that checks various aspects of cluster health, including DNS resolution and pod startup time.

Overview

Cluster Health Monitor runs as a Kubernetes deployment and exposes metrics about the health of your cluster through a Prometheus endpoint.

Local Testing

Kind (Kubernetes IN Docker) is used to create a local Kubernetes cluster.

Prerequisites
Testing Locally with Kind

To set up a local test environment with Kind:

make kind-test-local

This command:

  1. Creates a Kind cluster.
  2. Builds a Docker image for the cluster health monitor.
  3. Loads the image into the Kind cluster.
  4. Applies the Kubernetes manifests using the test overlay.
Useful Commands

Once your test environment is set up, you can use the following commands:

  • Set kubectl context:

    make kind-export-kubeconfig
    
  • Redeploy after changes:

    make kind-redeploy
    

    This rebuilds the image, loads it into the Kind cluster, and redeploys the application.

  • Clean up:

    make kind-delete-cluster
    

    This deletes the Kind cluster when you're done testing.

Directories

Path Synopsis
cmd
pkg
checker/dnscheck
Package dnscheck provides a checker for DNS.
Package dnscheck provides a checker for DNS.
types
TODO: Move this package into pkg/checker once the circular dependency issue is resolved.
TODO: Move this package into pkg/checker once the circular dependency issue is resolved.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL