[bitnami/kafka] add missed service annotations for external access service (#1965)

* add missed service annotations for external access service of bitnami/kafka chart

* Update svc-external-access.yaml

Co-authored-by: Carlos Rodríguez Hernández <carrodher1179@gmail.com>
This commit is contained in:
xud6
2020-02-24 16:06:33 +08:00
committed by GitHub
parent 0c37ed326f
commit 50650fa53b
5 changed files with 10 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v1
name: kafka
version: 7.2.6
version: 7.2.7
appVersion: 2.4.0
description: Apache Kafka is a distributed streaming platform.
keywords:

View File

@@ -128,6 +128,7 @@ The following tables lists the configurable parameters of the Kafka chart and th
| `externalAccess.service.loadBalancerIP`| Array of load balancer IPs for Kafka brokers. | `[]` |
| `externalAccess.service.domain` | Domain or external ip used to configure Kafka external listener when service type is NodePort | `nil` |
| `externalAccess.service.nodePort` | Array of node ports used to configure Kafka external listener when service type is NodePort | `[]` |
| `externalAccess.service.annotations` | Service annotations for external access | `` |
| `serviceAccount.create` | Enable creation of ServiceAccount for kafka pod | `false` |
| `serviceAccount.name` | Name of the created serviceAccount | Generated using the `kafka.fullname` template |
| `persistence.enabled` | Enable Kafka persistence using PVC, note that Zookeeper perisstency is unaffected | `true` |

View File

@@ -14,6 +14,7 @@ metadata:
labels: {{- include "kafka.labels" $ | nindent 4 }}
app.kubernetes.io/component: kafka
pod: {{ $targetPod }}
annotations: {{ include "kafka.tplValue" ( dict "value" .Values.externalAccess.service.annotations "context" $) | nindent 4 }}
spec:
type: {{ $root.Values.externalAccess.service.type }}
{{- if eq $root.Values.externalAccess.service.type "LoadBalancer" }}
@@ -41,4 +42,4 @@ spec:
statefulset.kubernetes.io/pod-name: {{ $targetPod }}
---
{{- end }}
{{- end }}
{{- end }}

View File

@@ -284,6 +284,9 @@ externalAccess:
##
nodePort: []
## Service annotations done as key:value pairs
annotations: {}
## Service account for Kafka to use.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
##

View File

@@ -284,6 +284,9 @@ externalAccess:
##
nodePort: []
## Service annotations done as key:value pairs
annotations: {}
## Service account for Kafka to use.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
##