vertical-pod-autoscaler

by stevehipwell

Helm chartv1.13.0App 1.8.1Verified publisher

Helm chart for the Vertical Pod Autoscaler.

About this chart

vertical-pod-autoscaler

The Vertical Pod Autoscaler (VPA) frees the users from necessity of setting up-to-date resource limits and requests for the containers in their pods. When configured, it will set the requests automatically based on usage and thus allow proper scheduling onto nodes so that appropriate resource amount is available for each pod. It will also maintain ratios between limits and requests that were specified in initial containers configuration.

It can both down-scale pods that are over-requesting resources, and also up-scale pods that are under-requesting resources based on their usage over time.

Autoscaling is configured with a CustomResourceDefinition object called VerticalPodAutoscaler. It allows to specify which pods should be vertically autoscaled as well as if/how the resource recommendations are applied.

This chart manages the MutatingWebhookConfiguration outside of the workload so there is no need to run additional logic to clean-up after VPA is uninstalled, webhook certificates can also be managed by Cert Manager. The chart handles the parameters for logging levels and ports but all other parameters need to be passed in to the components.

Homepage: https://github.com/kubernetes/autoscaler/

Maintainers

NameEmailUrl
stevehipwell[email protected]

Source Code

Installing the Chart

OCI Repository

To install the chart using the recommended OCI method you can use the following command.

helm upgrade --install vertical-pod-autoscaler oci://ghcr.io/stevehipwell/helm-charts/vertical-pod-autoscaler --version 1.13.0

Verification

As the OCI chart release is signed by Cosign you can verify the chart before installing it by running the following command.

cosign verify --certificate-oidc-issuer https://token.actions.githubusercontent.com --certificate-identity-regexp 'https://github\.com/action-stars/helm-workflows/\.github/workflows/release\.yaml@.+' --certificate-github-workflow-repository stevehipwell/helm-charts --certificate-github-workflow-name Release ghcr.io/stevehipwell/helm-charts/vertical-pod-autoscaler:1.13.0

Non-OCI Repository

Alternatively you can use the legacy non-OCI method via the following commands.

helm repo add stevehipwell https://stevehipwell.github.io/helm-charts/
helm upgrade --install vertical-pod-autoscaler stevehipwell/vertical-pod-autoscaler --version 1.13.0

Values

KeyTypeDefaultDescription
admissionController.affinityobject{}Affinity settings for scheduling the Admission Controller component. If an explicit label selector is not provided for pod affinity or pod anti-affinity one will be created from the pod selector labels.
admissionController.certManager.enabledboolfalseIf true, create a Certificate resource for the Admission Controller webhook.
admissionController.certManager.issuerKindstring"Issuer"Issuer kind for the Admission Controller webhook certificate.
admissionController.certManager.issuerNamestringnilIssuer name for the Admission Controller webhook certificate; if not provided an Issuer will be created.
admissionController.extraArgslist[]Additional args for the Admission Controller default container.
admissionController.extraEnvlist[]Additional environment variables for the Admission Controller default container.
admissionController.image.pullPolicystring"IfNotPresent"Image pull policy for the Admission Controller default container.
admissionController.image.repositorystring"registry.k8s.io/autoscaling/vpa-admission-controller"Image repository for the Admission Controller default container.
admissionController.image.tagstringnilImage tag for the Admission Controller default container; this will default to .Chart.AppVersion if not set.
admissionController.livenessProbeobjectSee values.yamlLiveness probe configuration for the Admission Controller default container.
admissionController.nodeSelectorobject{}Node selector labels for scheduling the Admission Controller.
admissionController.podAnnotationsobject{}Annotations to add to the Admission Controller pod.
admissionController.podDisruptionBudget.enabledboolfalseIf true, create a PodDisruptionBudget for the Admission Controller.
admissionController.podDisruptionBudget.maxUnavailablestringnilMinimum number of unavailable pods for the Admission Controller; either a number or a percentage.
admissionController.podDisruptionBudget.minAvailablestringnilMinimum number of available pods for the Admission Controller; either a number or a percentage.
admissionController.podDisruptionBudget.unhealthyPodEvictionPolicystringnilUnhealthy pod eviction policy for the Admission Controller PDB.
admissionController.podLabelsobject{}Labels to add to the Admission Controller pod.
admissionController.podSecurityContextobjectSee values.yamlSecurity context for the Admission Controller pod.
admissionController.priorityClassNamestringnilPriority class name for the Admission Controller.
admissionController.readinessProbeobjectSee values.yamlReadiness probe configuration for the Admission Controller default container.
admissionController.replicasint1Number of Admission Controller replicas to create.
admissionController.resourcesobject{}Resources for the Admission Controller default container.
admissionController.securityContextobjectSee values.yamlSecurity context for the Admission Controller default container.
admissionController.service.annotationsobject{}Annotations to add to the Admission Controller service.
admissionController.serviceAccount.annotationsobject{}Annotations to add to the Admission Controller service account.
admissionController.serviceAccount.createbooltrueIf true, create a new ServiceAccount for the Admission Controller.
admissionController.serviceAccount.labelsobject{}Labels to add to the Admission Controller service account.
admissionController.serviceAccount.namestringnilIf this is set and admissionController.serviceAccount.create is true this will be used for the created Admission Controller service account name, if this is set and admissionController.serviceAccount.create is false then this will define an existing service account to use.
admissionController.terminationGracePeriodSecondsintnilTermination grace period for the Admission Controller; in seconds.
admissionController.tolerationslist[]Node taints the Admission Controller will be tolerate for scheduling.
admissionController.topologySpreadConstraintslist[]Topology spread constraints for scheduling for the Admission Controller component. If an explicit label selector is not provided one will be created from the pod selector labels.
admissionController.updateStrategyobject{}Update strategy for the Admission Controller.
admissionController.webhook.namestring"vpa-webhook-config"Name of the Admission Controller webhook to create.
commonLabelsobject{}Labels to add to all chart resources.
fullnameOverridestringnilOverride the full name of the chart.
imagePullSecretslist[]Image pull secrets.
logLevelint4Log level for all components.
nameOverridestringnilOverride the name of the chart.
rbac.createbooltrueIf true, create ClusterRole & ClusterRoleBinding resources to enable access to the Kubernetes API.
rbac.createAggregateRolesboolfalseIf true, create aggregated ClusterRoles that extend the existing ClusterRoles view, edit and admin to permit view/edit operations on VerticalPodAutoscaler resources; see also the Kubernetes docs about this feature
recommender.affinityobject{}Affinity settings for scheduling the Recommender component. If an explicit label selector is not provided for pod affinity or pod anti-affinity one will be created from the pod selector labels.
recommender.extraArgslist[]Additional args for the Recommender default container.
recommender.extraEnvlist[]Additional environment variables for the Recommender default container.
recommender.image.pullPolicystring"IfNotPresent"Image pull policy for the Recommender default container.
recommender.image.repositorystring"registry.k8s.io/autoscaling/vpa-recommender"Image repository for the Recommender default container.
recommender.image.tagstringnilImage tag for the Recommender default container; this will default to .Chart.AppVersion if not set.
recommender.leaderElect.namestring"vpa-recommender"Name of resource object that is used for locking during leader election for the Recommender.
recommender.livenessProbeobjectSee values.yamlLiveness probe configuration for the Recommender default container.
recommender.nodeSelectorobject{}Node selector labels for scheduling the Recommender.
recommender.podAnnotationsobject{}Annotations to add to the Recommender pod.
recommender.podDisruptionBudget.enabledboolfalseIf true, create a PodDisruptionBudget for the Recommender.
recommender.podDisruptionBudget.maxUnavailablestringnilMinimum number of unavailable pods for the Recommender; either a number or a percentage.
recommender.podDisruptionBudget.minAvailablestringnilMinimum number of available pods for the Recommender; either a number or a percentage.
recommender.podDisruptionBudget.unhealthyPodEvictionPolicystringnilUnhealthy pod eviction policy for the Recommender PDB.
recommender.podLabelsobject{}Labels to add to the Recommender pod.
recommender.podSecurityContextobjectSee values.yamlSecurity context for the Recommender pod.
recommender.priorityClassNamestringnilPriority class name for the Recommender.
recommender.readinessProbeobjectSee values.yamlReadiness probe configuration for the Recommender default container.
recommender.replicasint1Number of Recommender replicas to create.
recommender.resourcesobject{}Resources for the Recommender default container.
recommender.securityContextobjectSee values.yamlSecurity context for the Recommender default container.
recommender.service.annotationsobject{}Annotations to add to the Recommender service.
recommender.serviceAccount.annotationsobject{}Annotations to add to the Recommender service account.
recommender.serviceAccount.createbooltrueIf true, create a new ServiceAccount for the Recommender.
recommender.serviceAccount.labelsobject{}Labels to add to the Recommender service account.
recommender.serviceAccount.namestringnilIf this is set and admissionController.serviceAccount.create is true this will be used for the created Recommender service account name, if this is set and admissionController.serviceAccount.create is false then this will define an existing service account to use.
recommender.terminationGracePeriodSecondsintnilTermination grace period for the Recommender; in seconds.
recommender.tolerationslist[]Node taints the Recommender will be tolerate for scheduling.
recommender.topologySpreadConstraintslist[]Topology spread constraints for scheduling for the Recommender component. If an explicit label selector is not provided one will be created from the pod selector labels.
recommender.updateStrategyobject{}Update strategy for the Recommender.
recommenderOnlyboolfalseIf true, only deploy the Recommender component.
serviceMonitor.additionalLabelsobject{}Additional labels for the service monitor.
serviceMonitor.enabledboolfalseIf true, create a ServiceMonitor to support collecting metrics via the Prometheus Operator.
serviceMonitor.endpointConfigobject{}Additional endpoint configuration for the service monitor endpoint.
updater.affinityobject{}Affinity settings for scheduling the Updater component. If an explicit label selector is not provided for pod affinity or pod anti-affinity one will be created from the pod selector labels.
updater.extraArgslist[]Additional args for the Updater default container.
updater.ex

Deploy vertical-pod-autoscaler with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has vertical-pod-autoscaler 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 chartvertical-pod-autoscaler is pinned at v1.13.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