vertical-pod-autoscaler

by sebastien-prudhomme

Helm chartv11.1.1App 1.5.0MITVerified publisher

Set of components that automatically adjust the amount of CPU and memory requested by pods running in the Kubernetes Cluster

About this chart

Vertical Pod Autoscaler

Vertical Pod Autoscaler is a set of components that automatically adjust the amount of CPU and memory requested by pods running in the Kubernetes Cluster.

DISCLAIMER: This is an unofficial chart not supported by Vertical Pod Autoscaler authors.

TL;DR;

$ helm repo add cowboysysop https://cowboysysop.github.io/charts/
$ helm install my-release cowboysysop/vertical-pod-autoscaler

or for an OCI-based registry:

$ helm install my-release oci://ghcr.io/cowboysysop/charts/vertical-pod-autoscaler

Introduction

This chart bootstraps a Vertical Pod Autoscaler deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

Installing

Install the chart using:

$ helm repo add cowboysysop https://cowboysysop.github.io/charts/
$ helm install my-release cowboysysop/vertical-pod-autoscaler

or for an OCI-based registry:

$ helm install my-release oci://ghcr.io/cowboysysop/charts/vertical-pod-autoscaler

These commands deploy Vertical Pod Autoscaler on the Kubernetes cluster in the default configuration and with the release name my-release. The deployment configuration can be customized by specifying the customization parameters with the helm install command using the --values or --set arguments. Find more information in the configuration section of this document.

Upgrading

Upgrade the chart deployment using:

$ helm upgrade my-release cowboysysop/vertical-pod-autoscaler

or for an OCI-based registry:

$ helm upgrade my-release oci://ghcr.io/cowboysysop/charts/vertical-pod-autoscaler

The command upgrades the existing my-release deployment with the most latest release of the chart.

Upgrading to version 11.0.0

The chart now uses forked versions of the Bitnami charts to reference the Bitnami Legacy repository:

  • https://github.com/bitnami/containers/issues/83267

Pod and container security contexts have been hardened and some values are now configured at the container level instead of the pod level.

Upgrading to version 10.0.0

The application has been updated to a major release, see the release notes for breaking changes:

  • https://github.com/kubernetes/autoscaler/releases/tag/vertical-pod-autoscaler-1.3.0

Information about services are no more injected into pod's environment variable.

Upgrading to version 9.0.0

The chart is now tested with Kubernetes >= 1.24 and Helm >= 3.9.

Future upgrades may introduce undetected breaking changes if you continue to use older versions.

Upgrading to version 8.0.0

Some parameters related to port management have been modified:

  • Parameter admissionController.metrics.service.port has been renamed admissionController.metrics.service.ports.metrics.
  • Parameter recommender.metrics.service.port has been renamed recommender.metrics.service.ports.metrics.
  • Parameter updater.metrics.service.port has been renamed updater.metrics.service.ports.metrics.

Upgrading to version 7.0.0

Some parameters related to image management have been modified:

  • Registry prefix in image.repository parameters is now configured in image.registry.
  • Parameter imagePullSecrets has been renamed global.imagePullSecrets.

Upgrading to version 6.0.0

The application version is no more compatible with Kubernetes 1.19, 1.20 and 1.21.

Upgrading to version 5.0.0

The application validates that all fields that specify CPU and memory have supported resolution:

  • CPU is a whole number of milli CPUs
  • Memory is a whole number of bytes

Upgrading to version 4.0.0

The application version is no more compatible with Kubernetes 1.16.

Custom resource definitions are now created and upgraded with a pre-install/pre-upgrade job.

Upgrading to version 3.0.0

The chart is no more compatible with Helm 2.

Refer to the Helm documentation for more information.

Upgrading to version 2.0.0

The port names have been changed to be compatible with Istio service mesh.

Uninstalling

Uninstall the my-release deployment using:

$ helm uninstall my-release

The command deletes the release named my-release and frees all the kubernetes resources associated with the release.

TIP: Specify the --purge argument to the above command to remove the release from the store and make its name free for later use.

Delete the vpa-webhook-config mutating webhook configuration automatically created by Vertical Pod Autoscaler admission controller component using:

$ kubectl delete mutatingwebhookconfiguration vpa-webhook-config

Optionally, delete the custom resource definitions created by the chart using:

WARNING: It will also try to delete all instances of the custom resource definitions.

$ kubectl delete crd verticalpodautoscalers.autoscaling.k8s.io
$ kubectl delete crd verticalpodautoscalercheckpoints.autoscaling.k8s.io

Configuration

Global parameters

NameDescriptionDefault
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]

Common parameters

NameDescriptionDefault
kubeVersionOverride Kubernetes version""
nameOverridePartially override vertical-pod-autoscaler.fullname template with a string (will prepend the release name)""
fullnameOverrideFully override vertical-pod-autoscaler.fullname template with a string""
namespaceOverrideFully override common.names.namespace template with a string""
commonAnnotationsAnnotations to add to all deployed objects{}
commonLabelsLabels to add to all deployed objects{}
extraDeployArray of extra objects to deploy with the release[]

Admission controller parameters

NameDescriptionDefault
admissionController.enabledEnable the componenttrue
admissionController.replicaCountNumber of replicas1
admissionController.revisionHistoryLimitNumber of old history to retain to allow rollback10
admissionController.image.registryImage registryregistry.k8s.io
admissionController.image.repositoryImage repositoryautoscaling/vpa-admission-controller
admissionController.image.tagImage tag1.5.0
admissionController.image.digestImage digest""
admissionController.image.pullPolicyImage pull policyIfNotPresent
admissionController.pdb.createSpecifies whether a pod disruption budget should be createdfalse
admissionController.pdb.minAvailableMinimum number/percentage of pods that should remain scheduled1
admissionController.pdb.maxUnavailableMaximum number/percentage of pods that may be made unavailablenil
admissionController.serviceAccount.createSpecifies whether a service account should be createdtrue
admissionController.serviceAccount.annotationsService account annotations{}
admissionController.serviceAccount.nameThe name of the service account to use (Generated using the vertical-pod-autoscaler.fullname template if not set)nil
admissionController.enableServiceLinksWhether information about services should be injected into pod's environment variablefalse
admissionController.hostAliasesPod host aliases[]
admissionController.deploymentAnnotationsAdditional deployment annotations{}
admissionController.podAnnotationsAdditional pod annotations{}
admissionController.podLabelsAdditional pod labels{}
admissionController.podSecurityContextPod security context
admissionController.podSecurityContext.seccompProfile.typeSet pod's Security Context seccomp profileRuntimeDefault
admissionController.hostNetworkUse the host networkfalse
admissionController.priorityClassNamePriority class namenil
admissionController.runtimeClassNameRuntime class name""
admissionController.topologySpreadConstraintsTopology Spread Constraints for pod assignment[]
admissionController.securityContextContainer security context
admissionController.securityContext.allowPrivilegeEscalationSet container's Security Context allowPrivilegeEscalationfalse
admissionController.securityContext.capabilities.dropList of capabilities to be dropped["ALL"]
admissionController.securityContext.readOnlyRootFilesystemSet container's Security Context readOnlyRootFilesystemtrue

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 v11.1.1 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