Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions bitnami/kafka/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ spec:
{{- end }}
- name: ALLOW_PLAINTEXT_LISTENER
value: {{ ternary "yes" "no" (or .Values.auth.enabled .Values.allowPlaintextListener) | quote }}
- name: KAFKA_CFG_BROKER_ID
value: {{ .Values.brokerId | quote }}
- name: KAFKA_CFG_DELETE_TOPIC_ENABLE
value: {{ .Values.deleteTopicEnable | quote }}
- name: KAFKA_HEAP_OPTS
Expand Down Expand Up @@ -206,6 +204,10 @@ spec:
{{- if .Values.extraEnvVars }}
{{ include "kafka.tplValue" ( dict "value" .Values.extraEnvVars "context" $) | nindent 12 }}
{{- end }}
command: ["/bin/bash", "-c"]
args:
- export KAFKA_CFG_BROKER_ID=${MY_POD_NAME##*-};
exec /entrypoint.sh /run.sh;
ports:
- name: kafka
containerPort: {{ .Values.service.port }}
Expand Down
2 changes: 1 addition & 1 deletion bitnami/kafka/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ allowPlaintextListener: true
# interBrokerListenerName:

## ID of the Kafka node.
brokerId: -1
# brokerId: -1

## Switch to enable topic deletion or not.
deleteTopicEnable: false
Expand Down