vertical-pod-autoscaler

by [riftbit]

Helm chartv3.6.1App 0.9.2Verified 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.

TL;DR;

$ helm repo add riftbit https://charts.riftbit.com/charts/
$ helm install my-release riftbit/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 riftbit https://charts.riftbit.com/charts/
$ helm install my-release riftbit/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

Replace the custom resource definitions created by the chart using:

kubectl replace -f crds/verticalpodautoscaler.yaml
kubectl replace -f crds/verticalpodautoscalercheckpoint.yaml

Upgrade the chart deployment using:

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

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

TIP: Use helm repo update to update information on available charts in the chart repositories.

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

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

$ kubectl delete mutatingwebhookconfiguration vpa-webhook-config

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.

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

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

Configuration

The following tables lists all the configurable parameters expose by the chart and their default values.

Common parameters

NameDescriptionDefault
kubeVersionOverride Kubernetes version""
imagePullSecretsDocker registry secret names as an array[]
nameOverridePartially override vertical-pod-autoscaler.fullname template with a string (will prepend the release name)nil
fullnameOverrideFully override vertical-pod-autoscaler.fullname template with a stringnil
commonAnnotationsAnnotations to add to all deployed objects{}
commonLabelsLabels to add to all deployed objects{}

Admission controller parameters

NameDescriptionDefault
admissionController.replicaCountNumber of replicas1
admissionController.image.repositoryImage namek8s.gcr.io/autoscaling/vpa-admission-controller
admissionController.image.tagImage tag0.9.2
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.createSpecify whether to create a ServiceAccounttrue
admissionController.serviceAccount.annotationsServiceAccount annotations{}
admissionController.serviceAccount.nameThe name of the ServiceAccount to createGenerated using the vertical-pod-autoscaler.admissionController.fullname template
admissionController.podAnnotationsAdditional pod annotations{}
admissionController.podLabelsAdditional pod labels{}
admissionController.podSecurityContextPod security context{ runAsNonRoot: true, runAsUser: 65534 }
admissionController.priorityClassNamePriority class namenil
admissionController.securityContextContainer security context{}
admissionController.livenessProbe.enabledEnable liveness probetrue
admissionController.livenessProbe.initialDelaySecondsDelay before the liveness probe is initiated0
admissionController.livenessProbe.periodSecondsHow often to perform the liveness probe10
admissionController.livenessProbe.timeoutSecondsWhen the liveness probe times out1
admissionController.livenessProbe.failureThresholdMinimum consecutive failures for the liveness probe to be considered failed after having succeeded3
admissionController.livenessProbe.successThresholdMinimum consecutive successes for the liveness probe to be considered successful after having failed1
admissionController.readinessProbe.enabledEnable readiness probetrue
admissionController.readinessProbe.initialDelaySecondsDelay before the readiness probe is initiated0
admissionController.readinessProbe.periodSecondsHow often to perform the readiness probe10
admissionController.readinessProbe.timeoutSecondsWhen the readiness probe times out1
admissionController.readinessProbe.failureThresholdMinimum consecutive failures for the readiness probe to be considered failed after having succeeded3
admissionController.readinessProbe.successThresholdMinimum consecutive successes for the readiness probe to be considered successful after having failed1
admissionController.service.annotationsService annotations{}
admissionController.service.typeService typeClusterIP
admissionController.service.clusterIPStatic cluster IP address or None for headless service when service type is ClusterIPnil
admissionController.resourcesCPU/Memory resource requests/limits{}
admissionController.nodeSelectorNode labels for pod assignment{}
admissionController.tolerationsTolerations for pod assignment[]
admissionController.affinityMap of node/pod affinities{}
admissionController.extraArgsAdditional container arguments{ v: 2 }
admissionController.extraEnvVarsAdditional container environment variables[]
admissionController.extraEnvVarsCMName of existing ConfigMap containing additional container environment variablesnil

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 v3.6.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