This repository contains an automated Kubernetes health test suite built using Terratest.
It validates that your example workloads — hello-world, nginx, a ping Job, and a statefulset — are correctly deployed and healthy.
| Component | Description | What’s Verified |
|---|---|---|
| hello-world Pod | Simple BusyBox container that logs a startup message | Pod creation, readiness, and log contents |
| nginx Deployment + Service | Single-replica Nginx deployment exposed via ClusterIP |
Deployment health and Service port mapping |
| ping-nginx Job | Curl job that pings the nginx service | Job completion (exit code 0) |
| stateful-demo StatefulSet | StatefulSet that writes “hello” to a mounted PVC | Pod readiness and data persistence check |
git clone https://github.com/your-org/k8s-health-tests.git
cd k8s-health-tests
go mod tidy
go test -v .