Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.5.0
version: 0.6.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
24 changes: 20 additions & 4 deletions vertical-pod-autoscaler/charts/vertical-pod-autoscaler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ WARNING: This chart is currently under development and is not ready for producti

Automatically adjust resources for your workloads

![Version: 0.5.0](https://img.shields.io/badge/Version-0.5.0-informational?style=flat-square)
![Version: 0.6.0](https://img.shields.io/badge/Version-0.6.0-informational?style=flat-square)
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![AppVersion: 1.5.1](https://img.shields.io/badge/AppVersion-1.5.1-informational?style=flat-square)

Expand All @@ -22,7 +22,10 @@ The Vertical Pod Autoscaler (VPA) automatically adjusts the CPU and memory resou

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| admissionController.affinity | object | `{}` | |
| admissionController.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].labelSelector.matchExpressions[0].key | string | `"app.kubernetes.io/component"` | |
| admissionController.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].labelSelector.matchExpressions[0].operator | string | `"In"` | |
| admissionController.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].labelSelector.matchExpressions[0].values[0] | string | `"admission-controller"` | |
| admissionController.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].topologyKey | string | `"kubernetes.io/hostname"` | |
| admissionController.enabled | bool | `true` | |
| admissionController.extraArgs | list | `[]` | |
| admissionController.extraEnv | list | `[]` | |
Expand Down Expand Up @@ -65,7 +68,10 @@ The Vertical Pod Autoscaler (VPA) automatically adjusts the CPU and memory resou
| imagePullSecrets | list | `[]` | |
| nameOverride | string | `nil` | |
| rbac.create | bool | `true` | |
| recommender.affinity | object | `{}` | |
| recommender.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].labelSelector.matchExpressions[0].key | string | `"app.kubernetes.io/component"` | |
| recommender.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].labelSelector.matchExpressions[0].operator | string | `"In"` | |
| recommender.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].labelSelector.matchExpressions[0].values[0] | string | `"recommender"` | |
| recommender.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].topologyKey | string | `"kubernetes.io/hostname"` | |
| recommender.enabled | bool | `true` | |
| recommender.extraArgs | list | `[]` | |
| recommender.extraEnv | list | `[]` | |
Expand Down Expand Up @@ -93,13 +99,23 @@ The Vertical Pod Autoscaler (VPA) automatically adjusts the CPU and memory resou
| recommender.serviceAccount.create | bool | `true` | |
| recommender.serviceAccount.labels | object | `{}` | |
| recommender.tolerations | list | `[]` | |
| updater.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].labelSelector.matchExpressions[0].key | string | `"app.kubernetes.io/component"` | |
| updater.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].labelSelector.matchExpressions[0].operator | string | `"In"` | |
| updater.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].labelSelector.matchExpressions[0].values[0] | string | `"updater"` | |
| updater.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].topologyKey | string | `"kubernetes.io/hostname"` | |
| updater.enabled | bool | `true` | |
| updater.image.pullPolicy | string | `"IfNotPresent"` | |
| updater.image.repository | string | `"registry.k8s.io/autoscaling/vpa-updater"` | |
| updater.image.tag | string | `nil` | |
| updater.nodeSelector | object | `{}` | |
| updater.podAnnotations | object | `{}` | |
| updater.podLabels | object | `{}` | |
| updater.replicas | int | `1` | |
| updater.replicas | int | `2` | |
| updater.resources.limits.cpu | string | `"200m"` | |
| updater.resources.limits.memory | string | `"1000Mi"` | |
| updater.resources.requests.cpu | string | `"50m"` | |
| updater.resources.requests.memory | string | `"500Mi"` | |
| updater.serviceAccount.annotations | object | `{}` | |
| updater.serviceAccount.create | bool | `true` | |
| updater.serviceAccount.labels | object | `{}` | |
| updater.tolerations | list | `[]` | |
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@ spec:
securityContext:
runAsNonRoot: true
runAsUser: 65534
{{- with .Values.updater.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.updater.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.updater.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: updater
image: {{ include "vertical-pod-autoscaler.updater.image" . }}
Expand Down Expand Up @@ -58,4 +70,8 @@ spec:
scheme: HTTP
periodSeconds: 10
failureThreshold: 3
{{- with .Values.updater.resources }}
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end -}}
51 changes: 48 additions & 3 deletions vertical-pod-autoscaler/charts/vertical-pod-autoscaler/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,16 @@ admissionController:
nodeSelector: {}

# Affinity for pod assignment.
affinity: {}
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/component
operator: In
values:
- admission-controller
topologyKey: kubernetes.io/hostname

# List of node taints to tolerate.
tolerations: []
Expand Down Expand Up @@ -148,7 +157,16 @@ recommender:
nodeSelector: {}

# Affinity rules for scheduling the Recommender.
affinity: {}
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/component
operator: In
values:
- recommender
topologyKey: kubernetes.io/hostname

# Tolerations for scheduling the Recommender.
tolerations: []
Expand Down Expand Up @@ -191,7 +209,7 @@ updater:
pullPolicy: IfNotPresent

# Number of Updater replicas to create.
replicas: 1
replicas: 2

# Labels to add to the Updater pod.
podLabels: {}
Expand All @@ -205,3 +223,30 @@ updater:
labels: {}
# Annotations to add to the Updater service account.
annotations: {}

# Resources for the Updater default container.
resources:
limits:
cpu: 200m
memory: 1000Mi
requests:
cpu: 50m
memory: 500Mi

# Affinity rules for scheduling the Updater.
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/component
operator: In
values:
- updater
topologyKey: kubernetes.io/hostname

# Node selector labels for scheduling the Updater.
nodeSelector: {}

# Tolerations for scheduling the Updater.
tolerations: []