Skip to content

Use kind

Use kind to exercise the Kubernetes runner and chart with mock targets. The results do not represent production hardware.

  • Docker, kind, kubectl, Helm and just.
  • A cluster name that is not in use.
  1. Create the cluster. This installs cert-manager, CloudNativePG, ingress-nginx, Envoy Gateway and a test certificate issuer.

    Terminal window
    SERVTUNER_KIND_CLUSTER=servtuner-dev SERVTUNER_KIND_UP_CONFIRM=1 just kind-up
  2. Build the images and load them.

    Terminal window
    just images
    for image in api bench frontend mock; do
    kind load docker-image "servtuner-$image:e2e" --name servtuner-dev
    done
  3. Run an end-to-end test, or install the chart with your own values.

    Terminal window
    SERVTUNER_KUBE_CONTEXT=kind-servtuner-dev just e2e-platform

The test installs into its own namespace and removes it at the end. just e2e-mtls covers certificates, just e2e-gateway-mtls the Gateway API, and just e2e-forward-header sign-in through a proxy. just e2e-airgap <version> builds its own cluster with no internet access; see air-gapped installs.

Use bench.targetAntiAffinity: preferred, because one node cannot keep bench away from the target. If your storage is ReadWriteOnce, set the claim’s access mode so the chart pins Jobs to the API’s node.

Terminal window
kubectl --context kind-servtuner-dev get pods -A
Terminal window
kind delete cluster --name servtuner-dev

Add Prometheus and read the Kubernetes install.