Prerequisites¶
Kubernetes¶
| Requirement | Version |
|---|---|
| Kubernetes | ≥ 1.24 |
| Kubernetes (in-place updates) | ≥ 1.31 |
Helm¶
Helm 3.10+ is required to deploy the chart.
Prometheus¶
k8s-sustain queries Prometheus for historical usage data. The chart bundles a Prometheus instance by default, or you can point it at an existing Prometheus.
If you bring your own Prometheus, make sure kube-state-metrics and cAdvisor metrics are scraped:
kube_pod_owner— maps pods to their workload ownerkube_replicaset_owner— resolves ReplicaSet → Deploymentcontainer_cpu_usage_seconds_total— CPU usage per containercontainer_memory_working_set_bytes— memory usage per container
TLS certificate (webhook only)¶
The admission webhook requires a valid TLS certificate trusted by the Kubernetes API server. Two options are supported:
- cert-manager (recommended) — set
webhook.certManager.enabled=true - Manual secret — create a
Secretof typekubernetes.io/tlswithtls.crtandtls.key, then setwebhook.tlsSecretName
If you only use Ongoing mode (no OnCreate), the webhook is not needed and you can disable it with webhook.enabled=false.