scale-sentry
Kubernetes controller and validation engine for HPA scaling and traffic resilience
About this chart
scale-sentry
Kubernetes controller and validation engine for HPA scaling and traffic resilience
Homepage: https://github.com/ethan-kane-ops/scale-sentry
This file is generated by helm-docs. Edit
values.yaml(the# --comments) orREADME.md.gotmpl, then runjust chart-docs.
Install
helm install scale-sentry \
oci://ghcr.io/ethan-kane-ops/charts/scale-sentry \
--version 0.5.0 \
--namespace scale-sentry --create-namespace
The image and chart are cosign-signed and carry SLSA provenance. See the project documentation for verification steps.
Maintainers
| Name | Url | |
|---|---|---|
| ethan-kane-ops | https://github.com/ethan-kane-ops |
Source Code
Values
| Key | Type | Default | Description |
|---|---|---|---|
| controller.affinity | object | {} | Affinity rules for the controller. Note replicaCount > 1 already renders topologySpreadConstraints; set this only for placement beyond that. |
| controller.devLogging | bool | false | Verbose development logging |
| controller.image.pullPolicy | string | "IfNotPresent" | Controller image pull policy |
| controller.image.repository | string | "ghcr.io/ethan-kane-ops/scale-sentry" | Controller image repository |
| controller.image.tag | string | "" | Controller image tag; empty falls back to .Chart.AppVersion so releases only bump Chart.yaml |
| controller.imagePullSecrets | list | [] | imagePullSecrets for the controller Deployment AND the loadgen/observer Job pods it creates. Job pods are separate objects pulling the same images, so a private registry needs this set here rather than on the ServiceAccount alone. |
| controller.leaderElect | bool | true | Enable leader election so multi-replica deployments are safe. A standby takes over within the lease-renew window (~15s) if the leader dies. |
| controller.nodeSelector | object | {} | Node labels the controller must be scheduled onto |
| controller.podAnnotations | object | {} | Extra annotations on the controller pod (scrape config, mesh injection opt-out, cost allocation) |
| controller.podDisruptionBudget | object | {"minAvailable":1} | PodDisruptionBudget, rendered only when replicaCount > 1 |
| controller.podLabels | object | {} | Extra labels on the controller pod |
| controller.podSecurityContext | object | {"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}} | Pod-level securityContext for the controller. Default satisfies PodSecurityAdmission "Restricted" (runAsNonRoot, seccomp RuntimeDefault). |
| controller.priorityClassName | string | "" | PriorityClass for the controller. Worth setting: a controller evicted under node pressure stops reconciling silently. |
| controller.replicaCount | int | 1 | Number of controller replicas; >1 enables HA (renders a PodDisruptionBudget + topology spread) |
| controller.resources | object | {"limits":{"memory":"256Mi"},"requests":{"cpu":"100m","memory":"128Mi"}} | Controller resource requests/limits. No CPU limit by design (let the kernel scheduler arbitrate); memory is the only hard cap. |
| controller.securityContext | object | {"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}} | Container-level securityContext for the controller. Default satisfies PodSecurityAdmission "Restricted" (drop ALL caps, no privilege escalation, read-only root fs). |
| controller.tolerations | list | [] | Taints the controller tolerates |
| controller.topologySpreadConstraints | list | [{"maxSkew":1,"topologyKey":"topology.kubernetes.io/zone","whenUnsatisfiable":"ScheduleAnyway"}] | Topology spread constraints, rendered only when replicaCount > 1. Default: prefer spreading replicas across zones. |
| fullnameOverride | string | "" | Override the full release name |
| loadgenImage | string | "" | Loadgen Job image the controller injects. Empty composes the default GHCR path at .Chart.AppVersion. |
| metrics.service.annotations | object | {} | Annotations to add to the metrics Service |
| metrics.service.enabled | bool | false | Create a ClusterIP Service fronting the controller's :8080/metrics port |
| metrics.service.port | int | 8080 | Metrics Service port |
| metrics.serviceMonitor.enabled | bool | false | Create a prometheus-operator ServiceMonitor pointed at the metrics Service |
| metrics.serviceMonitor.interval | string | "30s" | Scrape interval |
| metrics.serviceMonitor.labels | object | {} | Extra labels for the ServiceMonitor (e.g. to match a Prometheus selector) |
| metrics.serviceMonitor.metricRelabelings | list | [] | ServiceMonitor metric relabelings |
| metrics.serviceMonitor.relabelings | list | [] | ServiceMonitor relabelings |
| metrics.serviceMonitor.scrapeTimeout | string | "10s" | Scrape timeout |
| nameOverride | string | "" | Override the chart name used in resource names |
| observer.namespaces | list | [] | Extra namespaces to install observer RBAC into. The release namespace is always covered. A ScaleValidation in a namespace missing from this list produces an observer with no permissions, so its run degrades to an Unknown verdict. Example: [staging, payments]. |
| observerImage | string | "" | Observer Job image the controller injects. Empty composes the default GHCR path at .Chart.AppVersion. |
| observerServiceAccount | string | "scale-sentry-observer" | Observer ServiceAccount name, used by the loadgen Job's observer sidecar and by the RBAC rendered for every namespace in observer.namespaces. |
| rbac | object | {"create":true,"extraRules":[]} | rbac.create gates the controller manager ClusterRole + binding only. The observer RBAC (symlinked from config/) is always installed because the operator cannot function without it. |
| rbac.extraRules | list | [] | Extra ClusterRole rules appended to the manager role. Needed when spec.targetRef names a scalable workload outside apps/v1, e.g. [{apiGroups: [argoproj.io], resources: [rollouts, rollouts/scale], verbs: [get, list, watch]}]. |
| serviceAccount.annotations | object | {} | Annotations to add to the controller ServiceAccount |
| serviceAccount.create | bool | true | Create the controller ServiceAccount |
Deploy scale-sentry with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has scale-sentry on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartscale-sentry is pinned at v0.5.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply