diff --git a/stable/cluster-autoscaler/Chart.yaml b/stable/cluster-autoscaler/Chart.yaml index 463356e472..4970c55c00 100644 --- a/stable/cluster-autoscaler/Chart.yaml +++ b/stable/cluster-autoscaler/Chart.yaml @@ -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.13.1 +version: 0.13.2 appVersion: 1.13.1 home: https://github.com/kubernetes/autoscaler sources: diff --git a/stable/cluster-autoscaler/README.md b/stable/cluster-autoscaler/README.md index 6259c49284..800fec9349 100644 --- a/stable/cluster-autoscaler/README.md +++ b/stable/cluster-autoscaler/README.md @@ -139,6 +139,7 @@ Parameter | Description | Default `extraEnv` | additional container environment variables | `{}` `nodeSelector` | node labels for pod assignment | `{}` `podAnnotations` | annotations to add to each pod | `{}` +`deployment.apiVersion` | apiVersion for the deployment | `extensions/v1beta1` `rbac.create` | If true, create & use RBAC resources | `false` `rbac.serviceAccountName` | existing ServiceAccount to use (ignored if rbac.create=true) | `default` `rbac.pspEnabled` | Must be used with `rbac.create` true. If true, creates & uses RBAC resources required in the cluster with [Pod Security Policies](https://kubernetes.io/docs/concepts/policy/pod-security-policy/) enabled. | `false` diff --git a/stable/cluster-autoscaler/templates/deployment.yaml b/stable/cluster-autoscaler/templates/deployment.yaml index 8135dbce2b..5fe7101472 100644 --- a/stable/cluster-autoscaler/templates/deployment.yaml +++ b/stable/cluster-autoscaler/templates/deployment.yaml @@ -1,6 +1,6 @@ {{- if or .Values.autoDiscovery.clusterName .Values.autoscalingGroups }} {{/* one of the above is required */}} -apiVersion: extensions/v1beta1 +apiVersion: {{ .Values.deployment.apiVersion }} kind: Deployment metadata: labels: @@ -11,6 +11,13 @@ metadata: name: {{ template "cluster-autoscaler.fullname" . }} spec: replicas: {{ .Values.replicaCount }} + selector: + matchLabels: + app: {{ template "cluster-autoscaler.name" . }} + release: {{ .Release.Name }} + {{- if .Values.podLabels }} +{{ toYaml .Values.podLabels | indent 8 }} + {{- end }} template: metadata: {{- if .Values.podAnnotations }} diff --git a/stable/cluster-autoscaler/values.yaml b/stable/cluster-autoscaler/values.yaml index 914b92e658..15c5e84c17 100644 --- a/stable/cluster-autoscaler/values.yaml +++ b/stable/cluster-autoscaler/values.yaml @@ -93,6 +93,9 @@ podAnnotations: {} podLabels: {} replicaCount: 1 +deployment: + apiVersion: "extensions/v1beta1" + rbac: ## If true, create & use RBAC resources ##