horizontal-pod-autoscalers
by WyriHaximus
Helm chartv1.0.0Verified publisher
Horizontal Pod Autoscalers library
About this chart
Horizontal Pod Autoscalers
Opinionated helm library chart for easy creation of horizontal pod autoscalers.
Example
Very basic example that uses the current apps fullname and replica count as minimum replicate count, defaults to 1024 as the max replica count:
{{- include "horizontal-pod-autoscalers.hpa" (dict "name" (include "default-backend.fullname" .) "replicas" (dict "min" .Values.replicas)) -}}
The following configuration options are available:
name: your-applications-deployment-name # Required, this MUST match the deployment we're autoscaling
replicas:
min: 2 # Optional, defaults to 2, but strongly suggest making it match the deployment replica count
max: 1024 # Optional, defaults to 1024
Opinionated decisions
- requires kubernetes ^1.18
- 1024 max replica's
- scales when average CPU usage goes above 50%
- scaling down happens at one pod a minute
Deploy horizontal-pod-autoscalers with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has horizontal-pod-autoscalers 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 charthorizontal-pod-autoscalers is pinned at v1.0.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