Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
[stable/cluster-autoscaler] Adds support for affinity to the cluster …
Browse files Browse the repository at this point in the history
…autoscaler (#2298)

* Add affinity to cluster autoscaler

* Add affinity to values.yaml

* Bump cluster-autoscaler to 0.2.1
  • Loading branch information
philipbjorge authored and mgoodness committed Oct 18, 2017
1 parent a22174f commit 8b63a56
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/cluster-autoscaler/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
description: Scales worker nodes within autoscaling groups.
icon: https://github.com/kubernetes/kubernetes/blob/master/logo/logo.png
name: cluster-autoscaler
version: 0.2.0
version: 0.2.1
sources:
- https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler
- https://github.com/spotinst/kubernetes-autoscaler/tree/master/cluster-autoscaler
Expand Down
1 change: 1 addition & 0 deletions stable/cluster-autoscaler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ The following tables lists the configurable parameters of the cluster-autoscaler

Parameter | Description | Default
--- | --- | ---
`affinity` | node/pod affinities | None
`autoscalingGroups[].name` | autoscaling group name | None. You *must* supply at least one.
`autoscalingGroups[].maxSize` | maximum autoscaling group size | None. You *must* supply at least one.
`autoscalingGroups[].minSize` | minimum autoscaling group size | None. You *must* supply at least one.
Expand Down
4 changes: 4 additions & 0 deletions stable/cluster-autoscaler/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ spec:
- name: ssl-certs
mountPath: /etc/ssl/certs/ca-certificates.crt
readOnly: true
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions stable/cluster-autoscaler/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ extraArgs: {}
# skip-nodes-with-local-storage: false
# skip-nodes-with-system-pods: true

## Affinity for pod assignment
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
## affinity: {}

## Node labels for pod assignment
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
##
Expand Down

0 comments on commit 8b63a56

Please sign in to comment.