Skip to content

Commit 3139a28

Browse files
authored
Merge pull request #8922 from monotek/updater-resources
vpa helm chart - add resources & extraArgs to updater
2 parents f4b071b + 20a9bbc commit 3139a28

File tree

5 files changed

+54
-24
lines changed

5 files changed

+54
-24
lines changed

vertical-pod-autoscaler/charts/vertical-pod-autoscaler/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.6.0
18+
version: 0.7.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

vertical-pod-autoscaler/charts/vertical-pod-autoscaler/README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,20 @@ WARNING: This chart is currently under development and is not ready for producti
44

55
Automatically adjust resources for your workloads
66

7-
![Version: 0.6.0](https://img.shields.io/badge/Version-0.6.0-informational?style=flat-square)
7+
![Version: 0.7.0](https://img.shields.io/badge/Version-0.7.0-informational?style=flat-square)
88
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
99
![AppVersion: 1.5.1](https://img.shields.io/badge/AppVersion-1.5.1-informational?style=flat-square)
1010

1111
## Introduction
1212
The Vertical Pod Autoscaler (VPA) automatically adjusts the CPU and memory resource requests of pods to match their actual resource utilization.
1313

14+
## Helm Installation & upgrade
15+
16+
```bash
17+
helm repo add autoscalers https://kubernetes.github.io/autoscaler
18+
helm upgrade -i vertical-pod-autoscaler autoscalers/vertical-pod-autoscaler
19+
```
20+
1421
## Maintainers
1522

1623
| Name | Email | Url |
@@ -36,10 +43,7 @@ The Vertical Pod Autoscaler (VPA) automatically adjusts the CPU and memory resou
3643
| admissionController.podDisruptionBudget.minAvailable | int or string | `1` | Minimum number/percentage of pods that must be available after the eviction. IMPORTANT: You can specify either 'minAvailable' or 'maxUnavailable', but not both. |
3744
| admissionController.podLabels | object | `{}` | |
3845
| admissionController.replicas | int | `2` | |
39-
| admissionController.resources.limits.cpu | string | `"200m"` | |
40-
| admissionController.resources.limits.memory | string | `"500Mi"` | |
41-
| admissionController.resources.requests.cpu | string | `"50m"` | |
42-
| admissionController.resources.requests.memory | string | `"200Mi"` | |
46+
| admissionController.resources | object | `{}` | |
4347
| admissionController.service.annotations | object | `{}` | |
4448
| admissionController.service.name | string | `"vpa-webhook"` | |
4549
| admissionController.service.ports[0].port | int | `443` | |
@@ -88,15 +92,13 @@ The Vertical Pod Autoscaler (VPA) automatically adjusts the CPU and memory resou
8892
| recommender.podDisruptionBudget.minAvailable | int or string | `1` | Minimum number/percentage of pods that must be available after the eviction. IMPORTANT: You can specify either 'minAvailable' or 'maxUnavailable', but not both. |
8993
| recommender.podLabels | object | `{}` | |
9094
| recommender.replicas | int | `2` | |
91-
| recommender.resources.limits.cpu | string | `"200m"` | |
92-
| recommender.resources.limits.memory | string | `"1000Mi"` | |
93-
| recommender.resources.requests.cpu | string | `"50m"` | |
94-
| recommender.resources.requests.memory | string | `"500Mi"` | |
95+
| recommender.resources | object | `{}` | |
9596
| recommender.serviceAccount.annotations | object | `{}` | |
9697
| recommender.serviceAccount.create | bool | `true` | |
9798
| recommender.serviceAccount.labels | object | `{}` | |
9899
| recommender.tolerations | list | `[]` | |
99100
| updater.enabled | bool | `true` | |
101+
| updater.extraArgs | list | `[]` | |
100102
| updater.image.pullPolicy | string | `"IfNotPresent"` | |
101103
| updater.image.repository | string | `"registry.k8s.io/autoscaling/vpa-updater"` | |
102104
| updater.image.tag | string | `nil` | |
@@ -112,6 +114,7 @@ The Vertical Pod Autoscaler (VPA) automatically adjusts the CPU and memory resou
112114
| updater.podDisruptionBudget.minAvailable | int or string | `1` | Minimum number/percentage of pods that must be available after the eviction. IMPORTANT: You can specify either 'minAvailable' or 'maxUnavailable', but not both. |
113115
| updater.podLabels | object | `{}` | |
114116
| updater.replicas | int | `2` | |
117+
| updater.resources | object | `{}` | |
115118
| updater.serviceAccount.annotations | object | `{}` | |
116119
| updater.serviceAccount.create | bool | `true` | |
117120
| updater.serviceAccount.labels | object | `{}` | |

vertical-pod-autoscaler/charts/vertical-pod-autoscaler/README.md.gotmpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ WARNING: This chart is currently under development and is not ready for producti
1111
## Introduction
1212
The Vertical Pod Autoscaler (VPA) automatically adjusts the CPU and memory resource requests of pods to match their actual resource utilization.
1313

14+
## Helm Installation & upgrade
15+
16+
```bash
17+
helm repo add autoscalers https://kubernetes.github.io/autoscaler
18+
helm upgrade -i vertical-pod-autoscaler autoscalers/vertical-pod-autoscaler
19+
```
20+
1421
{{ template "chart.maintainersSection" . }}
1522

1623
{{ template "chart.requirementsSection" . }}

vertical-pod-autoscaler/charts/vertical-pod-autoscaler/templates/updater-deployment.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,16 @@ spec:
5252
- --leader-elect-renew-deadline={{ .Values.updater.leaderElection.renewDeadline }}
5353
- --leader-elect-retry-period={{ .Values.updater.leaderElection.retryPeriod }}
5454
{{- end }}
55+
{{- with .Values.updater.extraArgs }}
56+
{{- toYaml . | nindent 12 }}
57+
{{- end }}
5558
ports:
5659
- name: prometheus
5760
containerPort: 8943
61+
{{- with .Values.updater.resources }}
62+
resources:
63+
{{- toYaml . | nindent 12 }}
64+
{{- end }}
5865
livenessProbe:
5966
httpGet:
6067
path: /health-check

vertical-pod-autoscaler/charts/vertical-pod-autoscaler/values.yaml

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ admissionController:
6363
extraArgs: []
6464

6565
# Resources for the Admission Controller default container.
66-
resources:
67-
limits:
68-
cpu: 200m
69-
memory: 500Mi
70-
requests:
71-
cpu: 50m
72-
memory: 200Mi
66+
resources: {}
67+
# limits:
68+
# cpu: 200m
69+
# memory: 500Mi
70+
# requests:
71+
# cpu: 50m
72+
# memory: 200Mi
7373

7474
# Node selector labels for scheduling the Admission Controller.
7575
nodeSelector: {}
@@ -142,13 +142,13 @@ recommender:
142142
extraArgs: []
143143

144144
# Resources for the Recommender default container.
145-
resources:
146-
limits:
147-
cpu: 200m
148-
memory: 1000Mi
149-
requests:
150-
cpu: 50m
151-
memory: 500Mi
145+
resources: {}
146+
# limits:
147+
# cpu: 200m
148+
# memory: 1000Mi
149+
# requests:
150+
# cpu: 50m
151+
# memory: 500Mi
152152

153153
# Node selector labels for scheduling the Recommender.
154154
nodeSelector: {}
@@ -188,6 +188,10 @@ recommender:
188188

189189
updater:
190190
enabled: true
191+
192+
# Additional args for the updater
193+
extraArgs: []
194+
191195
image:
192196
# Image repository for the Updater default container.
193197
repository: registry.k8s.io/autoscaling/vpa-updater
@@ -237,3 +241,12 @@ updater:
237241
# -- (int or string) Maximum number/percentage of pods that can be unavailable after the eviction.
238242
# IMPORTANT: You can specify either 'minAvailable' or 'maxUnavailable', but not both.
239243
maxUnavailable:
244+
245+
# Resources for the updater Controller
246+
resources: {}
247+
# limits:
248+
# cpu: 200m
249+
# memory: 500Mi
250+
# requests:
251+
# cpu: 50m
252+
# memory: 200Mi

0 commit comments

Comments
 (0)