mirror of
https://github.com/bitnami/charts.git
synced 2026-03-11 07:17:45 +08:00
[bitnami/kafka] Add annotations to service
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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` |
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user