diff --git a/charts/cluster-autoscaler/Chart.yaml b/charts/cluster-autoscaler/Chart.yaml index 30a7a13db6..5a57224be1 100644 --- a/charts/cluster-autoscaler/Chart.yaml +++ b/charts/cluster-autoscaler/Chart.yaml @@ -17,4 +17,4 @@ name: cluster-autoscaler sources: - https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler type: application -version: 9.18.1 +version: 9.19.0 diff --git a/charts/cluster-autoscaler/README.md b/charts/cluster-autoscaler/README.md index d6f1423327..31f8d7dbb8 100644 --- a/charts/cluster-autoscaler/README.md +++ b/charts/cluster-autoscaler/README.md @@ -356,6 +356,7 @@ Though enough for the majority of installations, the default PodSecurityPolicy _ | resources | object | `{}` | Pod resource requests and limits. | | securityContext | object | `{}` | [Security context for pod](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) | | service.annotations | object | `{}` | Annotations to add to service | +| service.create | bool | `true` | If `true`, a Service will be created. | | service.externalIPs | list | `[]` | List of IP addresses at which the service is available. Ref: https://kubernetes.io/docs/user-guide/services/#external-ips. | | service.labels | object | `{}` | Labels to add to service | | service.loadBalancerIP | string | `""` | IP address to assign to load balancer (if supported). | diff --git a/charts/cluster-autoscaler/templates/service.yaml b/charts/cluster-autoscaler/templates/service.yaml index d630512d4e..255aea44b7 100644 --- a/charts/cluster-autoscaler/templates/service.yaml +++ b/charts/cluster-autoscaler/templates/service.yaml @@ -1,3 +1,4 @@ +{{- if .Values.service.create }} apiVersion: v1 kind: Service metadata: @@ -35,3 +36,4 @@ spec: selector: {{ include "cluster-autoscaler.instance-name" . | indent 4 }} type: "{{ .Values.service.type }}" +{{- end }} diff --git a/charts/cluster-autoscaler/values.yaml b/charts/cluster-autoscaler/values.yaml index def598d990..c6ecc30962 100644 --- a/charts/cluster-autoscaler/values.yaml +++ b/charts/cluster-autoscaler/values.yaml @@ -306,6 +306,8 @@ securityContext: {} # runAsGroup: 1001 service: + # service.create -- If `true`, a Service will be created. + create: true # service.annotations -- Annotations to add to service annotations: {} # service.labels -- Labels to add to service