[CA][Helm] Allow skipping service creation

This commit is contained in:
Mario Valderrama 2022-04-28 16:03:24 +02:00
parent 128bfa5d43
commit 800efd2ac4
No known key found for this signature in database
GPG Key ID: 8B3977FB51077104
4 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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). |

View File

@ -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 }}

View File

@ -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