[incubator/kafka] Added external.labels to external services similar to external.annotations (#21390)

Signed-off-by: Alvaro Gonzalez <kortatu@gmail.com>
This commit is contained in:
Álvaro
2020-05-07 09:25:09 -07:00
committed by GitHub
parent b53cdf0dd5
commit 095ae5eb4d
4 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
description: Apache Kafka is publish-subscribe messaging rethought as a distributed
commit log.
name: kafka
version: 0.21.1
version: 0.21.2
appVersion: 5.0.1
keywords:
- kafka
+1
View File
@@ -82,6 +82,7 @@ following configurable parameters:
| `external.type` | Service Type. | `NodePort` |
| `external.distinct` | Distinct DNS entries for each created A record. | `false` |
| `external.annotations` | Additional annotations for the external service. | `{}` |
| `external.labels` | Additional labels for the external service. | `{}` |
| `external.loadBalancerIP` | Add Static IP to the type Load Balancer. Depends on the provider if enabled | `[]`
| `external.loadBalancerSourceRanges` | Add IP ranges that are allowed to access the Load Balancer. | `[]`
| `podAnnotations` | Annotation to be added to Kafka pods | `{}` |
@@ -38,6 +38,9 @@ metadata:
labels:
{{- include "kafka.broker.labels" $root | nindent 4 }}
pod: {{ $responsiblePod | quote }}
{{- if $root.Values.external.labels }}
{{ toYaml $root.Values.external.labels | indent 4 }}
{{- end }}
spec:
type: {{ $root.Values.external.type }}
ports:
+3
View File
@@ -142,6 +142,9 @@ external:
type: NodePort
# annotations:
# service.beta.kubernetes.io/openstack-internal-load-balancer: "true"
# Labels to be added to external services
# labels:
# aLabel: "value"
dns:
useInternal: false
useExternal: true