Skip to content

Commit f33f490

Browse files
committed
Allow VPA recommenders for Cluster Autoscaler
1 parent ca53831 commit f33f490

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

charts/cluster-autoscaler/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ name: cluster-autoscaler
1111
sources:
1212
- https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler
1313
type: application
14-
version: 9.50.1
14+
version: 9.51.0

charts/cluster-autoscaler/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,8 @@ vpa:
421421
minAllowed:
422422
cpu: 20m
423423
memory: 50Mi
424+
recommenders:
425+
- name: default
424426
```
425427

426428
## Values
@@ -536,4 +538,5 @@ vpa:
536538
| vpa | object | `{"containerPolicy":{},"enabled":false,"updateMode":"Auto"}` | Configure a VerticalPodAutoscaler for the cluster-autoscaler Deployment. |
537539
| vpa.containerPolicy | object | `{}` | [ContainerResourcePolicy](https://github.com/kubernetes/autoscaler/blob/vertical-pod-autoscaler/v0.13.0/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1/types.go#L159). The containerName is always et to the deployment's container name. This value is required if VPA is enabled. |
538540
| vpa.enabled | bool | `false` | If true, creates a VerticalPodAutoscaler. |
541+
| vpa.recommenders | list | `[]` | List of recommender selectors that will apply to this VerticalPodAutoscaler. An empty list uses the `default` recommender. |
539542
| vpa.updateMode | string | `"Auto"` | [UpdateMode](https://github.com/kubernetes/autoscaler/blob/vertical-pod-autoscaler/v0.13.0/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1/types.go#L124) |

charts/cluster-autoscaler/templates/vpa.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ spec:
1313
name: {{ template "cluster-autoscaler.fullname" . }}
1414
updatePolicy:
1515
updateMode: {{ .Values.vpa.updateMode | quote }}
16+
{{- with .Values.vpa.recommenders }}
17+
recommenders: {{- . | toYaml | nindent 4 }}
18+
{{- end }}
1619
resourcePolicy:
1720
containerPolicies:
1821
- containerName: {{ template "cluster-autoscaler.name" . }}

charts/cluster-autoscaler/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,10 @@ vpa:
489489
updateMode: "Auto"
490490
# vpa.containerPolicy -- [ContainerResourcePolicy](https://github.com/kubernetes/autoscaler/blob/vertical-pod-autoscaler/v0.13.0/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1/types.go#L159). The containerName is always et to the deployment's container name. This value is required if VPA is enabled.
491491
containerPolicy: {}
492+
# vpa.recommenders -- VPA recommenders that will provide recommendations for vertical scaling
493+
# When the recommenders list is empty, the recommender 'default' is used
494+
recommenders: []
495+
# - name: my-recommender
492496

493497
# secretKeyRefNameOverride -- Overrides the name of the Secret to use when loading the secretKeyRef for AWS, Azure and Civo env variables
494498
secretKeyRefNameOverride: ""

0 commit comments

Comments
 (0)