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](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
- https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#how-can-i-configure-overprovisioning-with-cluster-autoscaler
- https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler
- https://github.com/kubernetes/kubernetes/tree/master/build/pause
Values
| Key | Type | Default | Description |
|---|---|---|---|
| containerSecurityContext | object | {} | Container security context object |
| deployments | list | [] | Define optional additional deployments - A default deployment is included by default |
| deployments[0].affinity | object | {} | Default Deployment - Map of node/pod affinities |
| deployments[0].annotations | object | {} | Default Deployment - Annotations to add to the deployment |
| deployments[0].labels | object | {} | Default Deployment - Optional labels |
| deployments[0].name | string | "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].nodeSelector | object | {} | Default Deployment - Node labels for pod assignment |
| deployments[0].pdb | object | {} | Default Deployment - Optional PodDisruptionBudget |
| deployments[0].podAnnotations | object | {} | Default Deployment - Annotations to add to the pods |
| deployments[0].replicaCount | int | 3 | Default Deployment - Number of replicas |
| deployments[0].resources.limits.cpu | string | "1000m" | Default Deployment - CPU limit for the overprovision pods |
| deployments[0].resources.limits.memory | string | "1000Mi" | Default Deployment - Memory limit for the overprovision pods |
| deployments[0].resources.requests.cpu | string | "1000m" | Default Deployment - CPU requested for the overprovision pods |
| deployments[0].resources.requests.memory | string | "1000Mi" | Default Deployment - Memory requested for the overprovision pods |
| deployments[0].schedulerName | string | "" | Default Deployment - Override the scheduler for overprovision pods |
| deployments[0].tolerations | list | [] | Default Deployment - Optional deployment tolerations |
| deployments[0].topologySpreadConstraints | list | [] | Default Deployment - Optional topology spread constraints |
| extraLabels | object | {} | Apply extra labels to common labels |
| extraObjects | list | [] | Extra Kubernetes manifests to deploy alongside the overprovisioning deployments. Rendered with tpl, so they can reference release values and chart helpers |
| fullnameOverride | string | "" | Override the fullname of the chart |
| image.args | list | [] | Override container args |
| image.command | list | [] | Override container command |
| image.pullPolicy | string | "IfNotPresent" | Container pull policy |
| image.repository | string | "registry.k8s.io/pause" | Image repository |
| image.tag | string | .Chart.AppVersion | Image tag |
| nameOverride | string | "" | Override the name of the chart |
| podSecurityContext | object | {} | Pod security context object |
| priorityClassDefault.enabled | bool | true | If true, enable default priorityClass |
| priorityClassDefault.name | string | "default" | Name of the default priorityClass |
| priorityClassDefault.value | int | 0 | Priority value of the default priorityClass |
| priorityClassOverprovision.name | string | "overprovisioning" | Name of the overprovision priorityClass |
| priorityClassOverprovision.value | int | -1 | Priority value of the overprovision priorityClass |
| serviceAccount.annotations | object | {} | Additional Service Account annotations |
| serviceAccount.automountServiceAccountToken | bool | true | Automount API credentials for a Service Account |
| serviceAccount.create | bool | true | Determine whether a Service Account should be created or it should reuse an exiting one |
| serviceAccount.name | string | nil | The name of the ServiceAccount to use. If not set and create is true, a name is generated using the fullname template |
| terminationGracePeriodSeconds | int | 0 | Time for graceful pod termination |
Maintainers
| Name | Url | |
|---|---|---|
| max-rocket-internet | https://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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcluster-overprovisioner is pinned at v0.7.15 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