cluster-overprovisioner

by Delivery Hero

Helm chartv0.7.15App 3.9Verified publisher

This chart provide a buffer for cluster autoscaling to allow overprovisioning of cluster nodes. This is desired when you have work loads that need to scale up quickly without waiting for the new cluster nodes to be created and join the cluster. It works by creating a deployment that creates pods of a lower than default `PriorityClass`. These pods request resources from the cluster but don't actually consume any resources. These pods are then evicted allowing other normal pods to be created while also triggering a scale-up by the [cluster-autoscaler](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler). This approach is the [current recommended method to achieve overprovisioning](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#how-can-i-configure-overprovisioning-with-cluster-autoscaler).

About this chart

cluster-overprovisioner

This chart provide a buffer for cluster autoscaling to allow overprovisioning of cluster nodes. This is desired when you have work loads that need to scale up quickly without waiting for the new cluster nodes to be created and join the cluster.

It works by creating a deployment that creates pods of a lower than default PriorityClass. These pods request resources from the cluster but don't actually consume any resources. These pods are then evicted allowing other normal pods to be created while also triggering a scale-up by the cluster-autoscaler.

This approach is the current recommended method to achieve overprovisioning.

Homepage: https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler

How to install this chart

A simple install with default values, latest chart version and generated name:

helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/cluster-overprovisioner

To install a specific version of this chart:

helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/cluster-overprovisioner --version 0.7.15

To install the chart with the release name my-release:

helm install my-release oci://ghcr.io/deliveryhero/helm-charts/cluster-overprovisioner

To install with some set values:

helm install my-release oci://ghcr.io/deliveryhero/helm-charts/cluster-overprovisioner --set values_key1=value1 --set values_key2=value2

To install with custom values file:

helm install my-release oci://ghcr.io/deliveryhero/helm-charts/cluster-overprovisioner -f values.yaml

Source Code

Values

KeyTypeDefaultDescription
containerSecurityContextobject{}Container security context object
deploymentslist[]Define optional additional deployments - A default deployment is included by default
deployments[0].affinityobject{}Default Deployment - Map of node/pod affinities
deployments[0].annotationsobject{}Default Deployment - Annotations to add to the deployment
deployments[0].labelsobject{}Default Deployment - Optional labels
deployments[0].namestring"default"Default Deployment - Name for additional deployments (will be added as label cluster-over-provisioner-name, so you can match it with affinity rules)
deployments[0].nodeSelectorobject{}Default Deployment - Node labels for pod assignment
deployments[0].pdbobject{}Default Deployment - Optional PodDisruptionBudget
deployments[0].podAnnotationsobject{}Default Deployment - Annotations to add to the pods
deployments[0].replicaCountint3Default Deployment - Number of replicas
deployments[0].resources.limits.cpustring"1000m"Default Deployment - CPU limit for the overprovision pods
deployments[0].resources.limits.memorystring"1000Mi"Default Deployment - Memory limit for the overprovision pods
deployments[0].resources.requests.cpustring"1000m"Default Deployment - CPU requested for the overprovision pods
deployments[0].resources.requests.memorystring"1000Mi"Default Deployment - Memory requested for the overprovision pods
deployments[0].schedulerNamestring""Default Deployment - Override the scheduler for overprovision pods
deployments[0].tolerationslist[]Default Deployment - Optional deployment tolerations
deployments[0].topologySpreadConstraintslist[]Default Deployment - Optional topology spread constraints
extraLabelsobject{}Apply extra labels to common labels
extraObjectslist[]Extra Kubernetes manifests to deploy alongside the overprovisioning deployments. Rendered with tpl, so they can reference release values and chart helpers
fullnameOverridestring""Override the fullname of the chart
image.argslist[]Override container args
image.commandlist[]Override container command
image.pullPolicystring"IfNotPresent"Container pull policy
image.repositorystring"registry.k8s.io/pause"Image repository
image.tagstring.Chart.AppVersionImage tag
nameOverridestring""Override the name of the chart
podSecurityContextobject{}Pod security context object
priorityClassDefault.enabledbooltrueIf true, enable default priorityClass
priorityClassDefault.namestring"default"Name of the default priorityClass
priorityClassDefault.valueint0Priority value of the default priorityClass
priorityClassOverprovision.namestring"overprovisioning"Name of the overprovision priorityClass
priorityClassOverprovision.valueint-1Priority value of the overprovision priorityClass
serviceAccount.annotationsobject{}Additional Service Account annotations
serviceAccount.automountServiceAccountTokenbooltrueAutomount API credentials for a Service Account
serviceAccount.createbooltrueDetermine whether a Service Account should be created or it should reuse an exiting one
serviceAccount.namestringnilThe name of the ServiceAccount to use. If not set and create is true, a name is generated using the fullname template
terminationGracePeriodSecondsint0Time for graceful pod termination

Maintainers

NameEmailUrl
max-rocket-internethttps://github.com/max-rocket-internet
mmingorance-dh[email protected]

Chart source and versions

Chart source: github.com/deliveryhero/helm-charts/cluster-overprovisioner

Older chart versions: github.com/deliveryhero/helm-charts/pkgs/container/helm-charts/cluster-overprovisioner

Deploy cluster-overprovisioner with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cluster-overprovisioner 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 chartcluster-overprovisioner is pinned at v0.7.15 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