scale-sentry

by ethan-kane-ops

Helm chartv0.5.0App 0.5.0Apache-2.0Verified publisher

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) or README.md.gotmpl, then run just 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

NameEmailUrl
ethan-kane-opshttps://github.com/ethan-kane-ops

Source Code

Values

KeyTypeDefaultDescription
controller.affinityobject{}Affinity rules for the controller. Note replicaCount > 1 already renders topologySpreadConstraints; set this only for placement beyond that.
controller.devLoggingboolfalseVerbose development logging
controller.image.pullPolicystring"IfNotPresent"Controller image pull policy
controller.image.repositorystring"ghcr.io/ethan-kane-ops/scale-sentry"Controller image repository
controller.image.tagstring""Controller image tag; empty falls back to .Chart.AppVersion so releases only bump Chart.yaml
controller.imagePullSecretslist[]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.leaderElectbooltrueEnable leader election so multi-replica deployments are safe. A standby takes over within the lease-renew window (~15s) if the leader dies.
controller.nodeSelectorobject{}Node labels the controller must be scheduled onto
controller.podAnnotationsobject{}Extra annotations on the controller pod (scrape config, mesh injection opt-out, cost allocation)
controller.podDisruptionBudgetobject{"minAvailable":1}PodDisruptionBudget, rendered only when replicaCount > 1
controller.podLabelsobject{}Extra labels on the controller pod
controller.podSecurityContextobject{"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}}Pod-level securityContext for the controller. Default satisfies PodSecurityAdmission "Restricted" (runAsNonRoot, seccomp RuntimeDefault).
controller.priorityClassNamestring""PriorityClass for the controller. Worth setting: a controller evicted under node pressure stops reconciling silently.
controller.replicaCountint1Number of controller replicas; >1 enables HA (renders a PodDisruptionBudget + topology spread)
controller.resourcesobject{"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.securityContextobject{"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.tolerationslist[]Taints the controller tolerates
controller.topologySpreadConstraintslist[{"maxSkew":1,"topologyKey":"topology.kubernetes.io/zone","whenUnsatisfiable":"ScheduleAnyway"}]Topology spread constraints, rendered only when replicaCount > 1. Default: prefer spreading replicas across zones.
fullnameOverridestring""Override the full release name
loadgenImagestring""Loadgen Job image the controller injects. Empty composes the default GHCR path at .Chart.AppVersion.
metrics.service.annotationsobject{}Annotations to add to the metrics Service
metrics.service.enabledboolfalseCreate a ClusterIP Service fronting the controller's :8080/metrics port
metrics.service.portint8080Metrics Service port
metrics.serviceMonitor.enabledboolfalseCreate a prometheus-operator ServiceMonitor pointed at the metrics Service
metrics.serviceMonitor.intervalstring"30s"Scrape interval
metrics.serviceMonitor.labelsobject{}Extra labels for the ServiceMonitor (e.g. to match a Prometheus selector)
metrics.serviceMonitor.metricRelabelingslist[]ServiceMonitor metric relabelings
metrics.serviceMonitor.relabelingslist[]ServiceMonitor relabelings
metrics.serviceMonitor.scrapeTimeoutstring"10s"Scrape timeout
nameOverridestring""Override the chart name used in resource names
observer.namespaceslist[]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].
observerImagestring""Observer Job image the controller injects. Empty composes the default GHCR path at .Chart.AppVersion.
observerServiceAccountstring"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.
rbacobject{"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.extraRuleslist[]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.annotationsobject{}Annotations to add to the controller ServiceAccount
serviceAccount.createbooltrueCreate 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartscale-sentry is pinned at v0.5.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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