[bitnami/kafka] Add annotations to service

This commit is contained in:
Javier J. Salmeron Garcia
2019-01-21 16:16:57 +01:00
parent 52cfa6a6fe
commit 5191e48086
4 changed files with 9 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
name: kafka
version: 1.2.5
version: 1.3.0
appVersion: 2.1.0
description: Apache Kafka is a distributed streaming platform.
keywords:

View File

@@ -94,6 +94,7 @@ The following tables lists the configurable parameters of the Kafka chart and th
| `securityContext.runAsUser` | User ID for the container | `1001` |
| `service.type` | Kubernetes Service type | `ClusterIP` |
| `service.port` | Kafka port | `9092` |
| `service.annotations` | Service annotations | `` |
| `persistence.enabled` | Enable persistence using PVC | `true` |
| `persistence.storageClass` | PVC Storage Class for Kafka volume | `nil` |
| `persistence.accessMode` | PVC Access Mode for Kafka volume | `ReadWriteOnce` |

View File

@@ -7,6 +7,10 @@ metadata:
chart: {{ template "kafka.chart" . }}
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
annotations:
{{- range $key, $value := .Values.service.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
@@ -15,4 +19,4 @@ spec:
targetPort: kafka
selector:
app: {{ template "kafka.name" . }}
release: {{ .Release.Name | quote }}
release: {{ .Release.Name | quote }}

View File

@@ -174,6 +174,8 @@ securityContext:
service:
type: ClusterIP
port: 9092
## Service annotations done as key:value pairs
annotations:
## Kafka data Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>