Skip to content

Commit

Permalink
fix: issues with externalListener annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisMcKenzie committed Jan 10, 2025
1 parent 5e4d7db commit 4ab7f22
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/kafka/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: Setup a Kafka cluster using Strimzi operator
name: kafka
version: 0.3.4
version: 0.3.5
type: application
dependencies: []
keywords:
Expand Down
4 changes: 2 additions & 2 deletions charts/kafka/templates/kafka.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ spec:
{{- range .Values.strimzi.alternateNames }}
- {{ tpl . $ | quote }}
{{- end }}
annotations: {{ .Values.strimzi.externalListener.bootstrapAnnotations }}
annotations: {{ toYaml .Values.strimzi.externalListener.bootstrapAnnotations | nindent 14 }}
brokers:
{{- range $i, $e := until (int .Values.strimzi.replicas) }}
- broker: {{ $e }}
host: {{ tpl $.Values.strimzi.externalListener.brokerNameTemplate (merge (deepCopy $) (dict "brokerId" $e)) | quote }}
annotations: {{ .Values.strimzi.externalListener.brokerAnnotations }}
annotations: {{ toYaml $.Values.strimzi.externalListener.brokerAnnotations | nindent 16 }}
{{- end }}
{{- end }}
readinessProbe:
Expand Down
12 changes: 12 additions & 0 deletions charts/kafka/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ strimzi:

entityOperatorLabels: {}

externalListener:
enabled: false
# ingress class name
ingressClass: <ingress-class>
bootstrapHost: <cluster-name>-bootstrap.<domain>
bootstrapAnnotations:
external-dns.alpha.kubernetes.io/hostname: kafka-broker-1.mydomain.com.
brokerNameTemplate: "<cluster-name>-broker-{{.brokerId}}.<domain>"
brokerAnnotations:
external-dns.alpha.kubernetes.io/hostname: kafka-broker-1.mydomain.com.


# enable kraft mode for dual use Kafka nodes in a common node pool
kraft:
enabled: false
Expand Down

0 comments on commit 4ab7f22

Please sign in to comment.