Skip to content

Install on Kubernetes

servtuner installs as five Helm releases: cert-manager, CloudNativePG, Envoy Gateway, kube-prometheus-stack and servtuner itself. Each prerequisite is its upstream chart, unmodified, in its own release and namespace. You upgrade and roll back each one on its own, and skip any your cluster already runs. deploy/helmfile.yaml.gotmpl in the servtuner repository declares all five and installs them in order.

For a cluster with no internet access, follow air-gapped installs instead. It uses the same helmfile.

  • Kubernetes 1.35 or newer, and a default StorageClass. For real benchmarks, GPU nodes with the NVIDIA device plugin.
  • helm 3 or 4 and helmfile v1.8.5. helmfile sync needs no Helm plugin; apply and diff need helm-diff.
  • servtuner’s images (servtuner-api, servtuner-bench, servtuner-frontend) in a registry your nodes can pull from. No public images are published yet: build them with just images and push them, or load a release archive into your registry.
  • ReadWriteMany storage for several nodes, or an S3-compatible store. See storage.

No secret goes in a values file, the helmfile or the release. Values name a Kubernetes Secret, and you create it before the install.

Secret Where Keys When
A registry pull secret (kubernetes.io/dockerconfigjson) Every namespace the releases run in .dockerconfigjson Your registry needs a login to pull
TLS certificates (kubernetes.io/tls) servtuner’s namespace tls.crt, tls.key, ca.crt tls.source: secret instead of cert-manager
Object store keys for model weights The managed vLLM’s namespace Your names Weights streamed from S3 without pod identity
A Hugging Face token The managed vLLM’s namespace token Gated models from Hugging Face or a mirror

The chart generates the first-admin setup token itself. See authentication.

Copy deploy/helmfile/site-values.example.yaml to deploy/site-values.yaml. Every value of the chart may go there; these are the ones every site decides.

deploy/site-values.yaml
tls:
mode: mtls
source: cert-manager
certManager:
issuerRef: { kind: ClusterIssuer, name: your-issuer }
gateway:
enabled: true
hostname: servtuner.example.internal
parentRefs:
- { name: your-gateway, namespace: gateway-system }
storage:
file:
pvc: { create: true, accessMode: ReadWriteMany, size: 100Gi }
rbac:
bench:
targetNamespaces: [inference]

Envoy Gateway installs the controller, not a GatewayClass or a Gateway: those are yours. deploy/helmfile/envoy-gateway-class.yaml is an example class. If your class names its own EnvoyProxy, give it mergeType: StrategicMerge. Otherwise it replaces Envoy Gateway’s default proxy settings, including the registry the proxy image comes from.

Terminal window
helmfile -f deploy/helmfile.yaml.gotmpl -e eks sync # or -e kind for a local kind cluster

To use your own image registry, add --state-values-set registry=registry.example:5000. With a pull secret, also add --state-values-set 'imagePullSecrets={regcred}'.

Open the hostname you set, create the first admin with the setup token, and sign in. See authentication.

Turn off any prerequisite your cluster already runs:

Terminal window
helmfile -f deploy/helmfile.yaml.gotmpl -e eks \
--state-values-set install.certManager=false,install.prometheus=false sync

servtuner then uses yours: cert-manager’s CRDs, the CloudNativePG operator (or an external Postgres with postgres.mode: external), your Gateway API controller or an Ingress, and your Prometheus (prometheus.url in your site values).

gateway.enabled renders two HTTPRoutes on one hostname: the UI, and the API under <basePath>/api. In mtls, an Envoy Backend presents the chart’s client certificate to the API and a BackendTLSPolicy checks the API’s name. Install Envoy Gateway with enableBackend.

For a subpath, set frontend.basePath. Terminate browser TLS at the gateway or ingress. networkPolicy.enabled (the default) lets only the ingress controller or gateway (networkPolicy.ingressController) and bench Jobs reach the API, and nothing reach a bench pod. It needs a CNI that enforces NetworkPolicy.

The API manages Jobs, ConfigMaps and Secrets in the runs namespace. bench reads workloads in rbac.bench.targetNamespaces and nodes cluster-wide. Nothing is granted for managed targets until you list rbac.tuning.namespaces.

Run helmfile … sync again with the new versions. The API migrates its database on start. Each release is an ordinary Helm release, so helm history and helm rollback work on each. To upgrade only servtuner and hold the prerequisites, add --selector name=servtuner.

Terminal window
helmfile -f deploy/helmfile.yaml.gotmpl -e eks list # the releases and their versions
kubectl -n servtuner get pods
kubectl -n servtuner get certificates

Then save a target and run a connection check.

Configure Prometheus, storage, transport security and authentication. See every value.