Skip to content

Commit 5653dae

Browse files
committed
feat(vpa/chart): allow configuration of priorityClassName
Signed-off-by: Jorik Jonker <[email protected]>
1 parent ae03da4 commit 5653dae

File tree

5 files changed

+24
-0
lines changed

5 files changed

+24
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ The Vertical Pod Autoscaler (VPA) automatically adjusts the CPU and memory resou
3535
| admissionController.podDisruptionBudget.maxUnavailable | int or string | `nil` | Maximum number/percentage of pods that can be unavailable after the eviction. IMPORTANT: You can specify either 'minAvailable' or 'maxUnavailable', but not both. |
3636
| 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. |
3737
| admissionController.podLabels | object | `{}` | |
38+
| admissionController.priorityClassName | string | `nil` | |
3839
| admissionController.replicas | int | `2` | |
3940
| admissionController.resources.limits.cpu | string | `"200m"` | |
4041
| admissionController.resources.limits.memory | string | `"500Mi"` | |
@@ -87,6 +88,7 @@ The Vertical Pod Autoscaler (VPA) automatically adjusts the CPU and memory resou
8788
| recommender.podDisruptionBudget.maxUnavailable | int or string | `nil` | Maximum number/percentage of pods that can be unavailable after the eviction. IMPORTANT: You can specify either 'minAvailable' or 'maxUnavailable', but not both. |
8889
| 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. |
8990
| recommender.podLabels | object | `{}` | |
91+
| recommender.priorityClassName | string | `nil` | |
9092
| recommender.replicas | int | `2` | |
9193
| recommender.resources.limits.cpu | string | `"200m"` | |
9294
| recommender.resources.limits.memory | string | `"1000Mi"` | |
@@ -108,6 +110,7 @@ The Vertical Pod Autoscaler (VPA) automatically adjusts the CPU and memory resou
108110
| updater.leaderElection.retryPeriod | string | `"2s"` | |
109111
| updater.podAnnotations | object | `{}` | |
110112
| updater.podLabels | object | `{}` | |
113+
| updater.priorityClassName | string | `nil` | |
111114
| updater.replicas | int | `2` | |
112115
| updater.serviceAccount.annotations | object | `{}` | |
113116
| updater.serviceAccount.create | bool | `true` | |

vertical-pod-autoscaler/charts/vertical-pod-autoscaler/templates/admission-controller-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ spec:
4848
tolerations:
4949
{{- toYaml . | nindent 8 }}
5050
{{- end }}
51+
{{- with .Values.admissionController.priorityClassName }}
52+
priorityClassName: {{ . }}
53+
{{- end }}
5154
containers:
5255
- name: admission-controller
5356
image: {{ include "vertical-pod-autoscaler.admissionController.image" . }}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ spec:
3636
securityContext:
3737
{{ toYaml . | nindent 8 | trim }}
3838
{{- end }}
39+
{{- with .Values.recommender.priorityClassName }}
40+
priorityClassName: {{ . }}
41+
{{- end }}
3942
containers:
4043
- name: recommender
4144
image: {{ include "vertical-pod-autoscaler.recommender.image" . }}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ spec:
3232
securityContext:
3333
{{ toYaml . | nindent 8 | trim }}
3434
{{- end }}
35+
{{- with .Values.updater.priorityClassName }}
36+
priorityClassName: {{ . }}
37+
{{- end }}
3538
containers:
3639
- name: updater
3740
image: {{ include "vertical-pod-autoscaler.updater.image" . }}

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ admissionController:
108108
maxUnavailable:
109109
# maxUnavailable: 1
110110

111+
# name of priorityclass for scheduling
112+
priorityClassName:
113+
# priorityClassName : high-priority
114+
111115
recommender:
112116
enabled: true
113117
image:
@@ -186,6 +190,10 @@ recommender:
186190
maxUnavailable:
187191
# maxUnavailable: 1
188192

193+
# name of priorityclass for scheduling
194+
priorityClassName:
195+
# priorityClassName : high-priority
196+
189197
updater:
190198
enabled: true
191199
image:
@@ -227,3 +235,7 @@ updater:
227235
renewDeadline: 10s
228236
# Duration the clients should wait between attempting acquisition and renewal of a leadership.
229237
retryPeriod: 2s
238+
239+
# name of priorityclass for scheduling
240+
priorityClassName:
241+
# priorityClassName : high-priority

0 commit comments

Comments
 (0)