vertical-pod-autoscaler
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
- Kubernetes >= 1.24
- Metrics Server >= 0.2 (you can use the bitnami/metrics-server chart)
- Helm >= 3.9
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.porthas been renamedadmissionController.metrics.service.ports.metrics. - Parameter
recommender.metrics.service.porthas been renamedrecommender.metrics.service.ports.metrics. - Parameter
updater.metrics.service.porthas been renamedupdater.metrics.service.ports.metrics.
Upgrading to version 7.0.0
Some parameters related to image management have been modified:
- Registry prefix in
image.repositoryparameters is now configured inimage.registry. - Parameter
imagePullSecretshas been renamedglobal.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
| Name | Description | Default |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
Common parameters
| Name | Description | Default |
|---|---|---|
kubeVersion | Override Kubernetes version | "" |
nameOverride | Partially override vertical-pod-autoscaler.fullname template with a string (will prepend the release name) | "" |
fullnameOverride | Fully override vertical-pod-autoscaler.fullname template with a string | "" |
namespaceOverride | Fully override common.names.namespace template with a string | "" |
commonAnnotations | Annotations to add to all deployed objects | {} |
commonLabels | Labels to add to all deployed objects | {} |
extraDeploy | Array of extra objects to deploy with the release | [] |
Admission controller parameters
| Name | Description | Default |
|---|---|---|
admissionController.enabled | Enable the component | true |
admissionController.replicaCount | Number of replicas | 1 |
admissionController.revisionHistoryLimit | Number of old history to retain to allow rollback | 10 |
admissionController.image.registry | Image registry | registry.k8s.io |
admissionController.image.repository | Image repository | autoscaling/vpa-admission-controller |
admissionController.image.tag | Image tag | 1.5.0 |
admissionController.image.digest | Image digest | "" |
admissionController.image.pullPolicy | Image pull policy | IfNotPresent |
admissionController.pdb.create | Specifies whether a pod disruption budget should be created | false |
admissionController.pdb.minAvailable | Minimum number/percentage of pods that should remain scheduled | 1 |
admissionController.pdb.maxUnavailable | Maximum number/percentage of pods that may be made unavailable | nil |
admissionController.serviceAccount.create | Specifies whether a service account should be created | true |
admissionController.serviceAccount.annotations | Service account annotations | {} |
admissionController.serviceAccount.name | The name of the service account to use (Generated using the vertical-pod-autoscaler.fullname template if not set) | nil |
admissionController.enableServiceLinks | Whether information about services should be injected into pod's environment variable | false |
admissionController.hostAliases | Pod host aliases | [] |
admissionController.deploymentAnnotations | Additional deployment annotations | {} |
admissionController.podAnnotations | Additional pod annotations | {} |
admissionController.podLabels | Additional pod labels | {} |
admissionController.podSecurityContext | Pod security context | |
admissionController.podSecurityContext.seccompProfile.type | Set pod's Security Context seccomp profile | RuntimeDefault |
admissionController.hostNetwork | Use the host network | false |
admissionController.priorityClassName | Priority class name | nil |
admissionController.runtimeClassName | Runtime class name | "" |
admissionController.topologySpreadConstraints | Topology Spread Constraints for pod assignment | [] |
admissionController.securityContext | Container security context | |
admissionController.securityContext.allowPrivilegeEscalation | Set container's Security Context allowPrivilegeEscalation | false |
admissionController.securityContext.capabilities.drop | List of capabilities to be dropped | ["ALL"] |
admissionController.securityContext.readOnlyRootFilesystem | Set container's Security Context readOnlyRootFilesystem | true |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartvertical-pod-autoscaler is pinned at v11.1.1 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