[stable/fluentd] Added service.loadBalancerIP (#18498)

Added conditional to the service template and documentation to both the
values file and the readme for setting custom load balancer IP address.

Signed-off-by: Austin Orth <aorth@niche.com>
This commit is contained in:
Austin Orth
2019-11-03 06:43:39 -08:00
committed by Kubernetes Prow Robot
parent 6d22112751
commit 96b8887d69
4 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
description: A Fluentd Elasticsearch Helm chart for Kubernetes.
icon: https://raw.githubusercontent.com/fluent/fluentd-docs/master/public/logo/Fluentd_square.png
name: fluentd
version: 2.1.3
version: 2.2.0
appVersion: v2.4.0
home: https://www.fluentd.org/
sources:
+1
View File
@@ -71,6 +71,7 @@ Parameter | Description | Default
`serviceAccount.create` | Specifies whether a service account should be created. | `true`
`serviceAccount.name` | Name of the service account.
`priorityClassName` | priorityClassName | `nil`
`service.loadBalancerIP` | If `service.type` is `LoadBalancer` set custom IP load balancer IP address | `nil`
`service.ports` | port definition for the service | See [values.yaml](values.yaml)
`service.type` | type of service | `ClusterIP`
`service.annotations` | list of annotations for the service | `{}`
+3
View File
@@ -11,6 +11,9 @@ metadata:
{{ toYaml .Values.service.annotations | indent 4 }}
spec:
type: {{ .Values.service.type }}
{{ if (and (eq .Values.service.type "LoadBalancer") (not (empty .Values.service.loadBalancerIP))) }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{ end }}
ports:
{{- range $port := .Values.service.ports }}
- name: {{ $port.name }}
+1
View File
@@ -34,6 +34,7 @@ plugins:
service:
annotations: {}
type: ClusterIP
# loadBalancerIP:
# type: NodePort
# nodePort:
# Used to create Service records