Use kind
Use kind to exercise the Kubernetes runner and chart with mock targets. The results do not represent production hardware.
Prerequisites
Section titled “Prerequisites”- Docker, kind, kubectl, Helm and just.
- A cluster name that is not in use.
-
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 -
Build the images and load them.
Terminal window just imagesfor image in api bench frontend mock; dokind load docker-image "servtuner-$image:e2e" --name servtuner-devdone -
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.
Single-node settings
Section titled “Single-node settings”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.
Verify
Section titled “Verify”kubectl --context kind-servtuner-dev get pods -AClean up
Section titled “Clean up”kind delete cluster --name servtuner-devNext steps
Section titled “Next steps”Add Prometheus and read the Kubernetes install.