diff --git a/vertical-pod-autoscaler/charts/vertical-pod-autoscaler/README.md b/vertical-pod-autoscaler/charts/vertical-pod-autoscaler/README.md index 5b3be213e44..74880df151b 100644 --- a/vertical-pod-autoscaler/charts/vertical-pod-autoscaler/README.md +++ b/vertical-pod-autoscaler/charts/vertical-pod-autoscaler/README.md @@ -35,6 +35,7 @@ The Vertical Pod Autoscaler (VPA) automatically adjusts the CPU and memory resou | 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. | | 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. | | admissionController.podLabels | object | `{}` | | +| admissionController.priorityClassName | string | `nil` | | | admissionController.replicas | int | `2` | | | admissionController.resources.limits.cpu | string | `"200m"` | | | admissionController.resources.limits.memory | string | `"500Mi"` | | @@ -87,6 +88,7 @@ The Vertical Pod Autoscaler (VPA) automatically adjusts the CPU and memory resou | 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. | | 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. | | recommender.podLabels | object | `{}` | | +| recommender.priorityClassName | string | `nil` | | | recommender.replicas | int | `2` | | | recommender.resources.limits.cpu | string | `"200m"` | | | recommender.resources.limits.memory | string | `"1000Mi"` | | @@ -108,6 +110,7 @@ The Vertical Pod Autoscaler (VPA) automatically adjusts the CPU and memory resou | updater.leaderElection.retryPeriod | string | `"2s"` | | | updater.podAnnotations | object | `{}` | | | updater.podLabels | object | `{}` | | +| updater.priorityClassName | string | `nil` | | | updater.replicas | int | `2` | | | updater.serviceAccount.annotations | object | `{}` | | | updater.serviceAccount.create | bool | `true` | | diff --git a/vertical-pod-autoscaler/charts/vertical-pod-autoscaler/templates/admission-controller-deployment.yaml b/vertical-pod-autoscaler/charts/vertical-pod-autoscaler/templates/admission-controller-deployment.yaml index acc9a878e73..922c45000fb 100644 --- a/vertical-pod-autoscaler/charts/vertical-pod-autoscaler/templates/admission-controller-deployment.yaml +++ b/vertical-pod-autoscaler/charts/vertical-pod-autoscaler/templates/admission-controller-deployment.yaml @@ -48,6 +48,9 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.admissionController.priorityClassName }} + priorityClassName: {{ . }} + {{- end }} containers: - name: admission-controller image: {{ include "vertical-pod-autoscaler.admissionController.image" . }} diff --git a/vertical-pod-autoscaler/charts/vertical-pod-autoscaler/templates/recommender-deployment.yaml b/vertical-pod-autoscaler/charts/vertical-pod-autoscaler/templates/recommender-deployment.yaml index 7e41bd293d3..137bcc0614e 100644 --- a/vertical-pod-autoscaler/charts/vertical-pod-autoscaler/templates/recommender-deployment.yaml +++ b/vertical-pod-autoscaler/charts/vertical-pod-autoscaler/templates/recommender-deployment.yaml @@ -36,6 +36,9 @@ spec: securityContext: {{ toYaml . | nindent 8 | trim }} {{- end }} + {{- with .Values.recommender.priorityClassName }} + priorityClassName: {{ . }} + {{- end }} containers: - name: recommender image: {{ include "vertical-pod-autoscaler.recommender.image" . }} diff --git a/vertical-pod-autoscaler/charts/vertical-pod-autoscaler/templates/updater-deployment.yaml b/vertical-pod-autoscaler/charts/vertical-pod-autoscaler/templates/updater-deployment.yaml index 999aaf2ad3c..84a4174e7e7 100644 --- a/vertical-pod-autoscaler/charts/vertical-pod-autoscaler/templates/updater-deployment.yaml +++ b/vertical-pod-autoscaler/charts/vertical-pod-autoscaler/templates/updater-deployment.yaml @@ -32,6 +32,9 @@ spec: securityContext: {{ toYaml . | nindent 8 | trim }} {{- end }} + {{- with .Values.updater.priorityClassName }} + priorityClassName: {{ . }} + {{- end }} containers: - name: updater image: {{ include "vertical-pod-autoscaler.updater.image" . }} diff --git a/vertical-pod-autoscaler/charts/vertical-pod-autoscaler/values.yaml b/vertical-pod-autoscaler/charts/vertical-pod-autoscaler/values.yaml index bf7cc24c333..b031b427aa9 100644 --- a/vertical-pod-autoscaler/charts/vertical-pod-autoscaler/values.yaml +++ b/vertical-pod-autoscaler/charts/vertical-pod-autoscaler/values.yaml @@ -108,6 +108,10 @@ admissionController: maxUnavailable: # maxUnavailable: 1 + # name of priorityclass for scheduling + priorityClassName: + # priorityClassName : high-priority + recommender: enabled: true image: @@ -186,6 +190,10 @@ recommender: maxUnavailable: # maxUnavailable: 1 + # name of priorityclass for scheduling + priorityClassName: + # priorityClassName : high-priority + updater: enabled: true image: @@ -227,3 +235,7 @@ updater: renewDeadline: 10s # Duration the clients should wait between attempting acquisition and renewal of a leadership. retryPeriod: 2s + + # name of priorityclass for scheduling + priorityClassName: + # priorityClassName : high-priority