Skip to content

Commit

Permalink
[#234] Connect adapters to Kafka's headless service.
Browse files Browse the repository at this point in the history
Signed-off-by: Abel Buechner-Mihaljevic <[email protected]>
  • Loading branch information
b-abel committed May 26, 2021
1 parent 4960243 commit 004e1c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/hono/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ kafka:
defaultClientIdPrefix: {{ .component }}
{{- if .dot.Values.kafkaMessagingClusterExample.enabled }}
commonClientConfig:
bootstrap.servers: "{{ .dot.Release.Name }}-kafka:9092"
bootstrap.servers: {{ .dot.Release.Name }}-{{ .dot.Values.kafka.nameOverride }}-0.{{ .dot.Release.Name }}-{{ .dot.Values.kafka.nameOverride }}-headless.{{ .dot.Release.Namespace }}:{{ .dot.Values.kafka.service.port }}
security.protocol: SASL_PLAINTEXT
sasl.mechanism: SCRAM-SHA-512
sasl.jaas.config: "org.apache.kafka.common.security.scram.ScramLoginModule required username=\"{{ first .dot.Values.kafka.auth.sasl.jaas.clientUsers }}\" password=\"{{ first .dot.Values.kafka.auth.sasl.jaas.clientPasswords }}\";"
Expand Down
4 changes: 4 additions & 0 deletions charts/hono/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1773,6 +1773,10 @@ kafka:
# Note that this could require creating RBAC rules, for more information refer to
# https://github.com/bitnami/charts/tree/master/bitnami/kafka#accessing-kafka-brokers-from-outside-the-cluster
create: true
# the name of the template (maintains the release name)
nameOverride: kafka
service:
port: 9092
auth:
clientProtocol: sasl
sasl:
Expand Down

0 comments on commit 004e1c0

Please sign in to comment.