fixed zookeeper name references in helm charts. (#2525)
### Motivation zookeeper failed to start because of wrong ZOOKEEPER_SERVERS was set. ### Modifications Changed the reference of zookeeper names by how they were created. ### Result zookeeper started successfully and broker worked as expected.
This commit is contained in:
parent
483107e2b9
commit
a59e7a27dd
@ -33,6 +33,6 @@ metadata:
|
|||||||
data:
|
data:
|
||||||
zkServers:
|
zkServers:
|
||||||
{{- $global := . }}
|
{{- $global := . }}
|
||||||
{{ range $i, $e := until (.Values.zookeeper.replicaCount | int) }}{{ if ne $i 0 }},{{ end }}{{ printf "%s-%s-%s-%d.%s-%s-%s" $global.Release.Name $global.Chart.Name $global.Values.zookeeper.component $i $global.Release.Name $global.Chart.Name $global.Values.zookeeper.component }}{{ end }}
|
{{ range $i, $e := until (.Values.zookeeper.replicaCount | int) }}{{ if ne $i 0 }},{{ end }}{{ template "pulsar.fullname" $global }}-{{ $global.Values.zookeeper.component }}-{{ printf "%d" $i }}.{{ template "pulsar.fullname" $global }}-{{ $global.Values.zookeeper.component }}{{ end }}
|
||||||
{{ toYaml .Values.autoRecovery.configData | indent 2 }}
|
{{ toYaml .Values.autoRecovery.configData | indent 2 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@ -32,7 +32,7 @@ metadata:
|
|||||||
data:
|
data:
|
||||||
zkServers:
|
zkServers:
|
||||||
{{- $global := . }}
|
{{- $global := . }}
|
||||||
{{ range $i, $e := until (.Values.zookeeper.replicaCount | int) }}{{ if ne $i 0 }},{{ end }}{{ printf "%s-%s-%s-%d.%s-%s-%s" $global.Release.Name $global.Chart.Name $global.Values.zookeeper.component $i $global.Release.Name $global.Chart.Name $global.Values.zookeeper.component }}{{ end }}
|
{{ range $i, $e := until (.Values.zookeeper.replicaCount | int) }}{{ if ne $i 0 }},{{ end }}{{ template "pulsar.fullname" $global }}-{{ $global.Values.zookeeper.component }}-{{ printf "%d" $i }}.{{ template "pulsar.fullname" $global }}-{{ $global.Values.zookeeper.component }}{{ end }}
|
||||||
# disable auto recovery on bookies since we will start AutoRecovery in separated pods
|
# disable auto recovery on bookies since we will start AutoRecovery in separated pods
|
||||||
autoRecoveryDaemonEnabled: "false"
|
autoRecoveryDaemonEnabled: "false"
|
||||||
{{ toYaml .Values.bookkeeper.configData | indent 2 }}
|
{{ toYaml .Values.bookkeeper.configData | indent 2 }}
|
||||||
|
|||||||
@ -32,10 +32,10 @@ metadata:
|
|||||||
data:
|
data:
|
||||||
zookeeperServers:
|
zookeeperServers:
|
||||||
{{- $global := . }}
|
{{- $global := . }}
|
||||||
{{ range $i, $e := until (.Values.zookeeper.replicaCount | int) }}{{ if ne $i 0 }},{{ end }}{{ printf "%s-%s-%s-%d.%s-%s-%s" $global.Release.Name $global.Chart.Name $global.Values.zookeeper.component $i $global.Release.Name $global.Chart.Name $global.Values.zookeeper.component }}{{ end }}
|
{{ range $i, $e := until (.Values.zookeeper.replicaCount | int) }}{{ if ne $i 0 }},{{ end }}{{ template "pulsar.fullname" $global }}-{{ $global.Values.zookeeper.component }}-{{ printf "%d" $i }}.{{ template "pulsar.fullname" $global }}-{{ $global.Values.zookeeper.component }}{{ end }}
|
||||||
configurationStoreServers:
|
configurationStoreServers:
|
||||||
{{- $global := . }}
|
{{- $global := . }}
|
||||||
{{ range $i, $e := until (.Values.zookeeper.replicaCount | int) }}{{ if ne $i 0 }},{{ end }}{{ printf "%s-%s-%s-%d.%s-%s-%s" $global.Release.Name $global.Chart.Name $global.Values.zookeeper.component $i $global.Release.Name $global.Chart.Name $global.Values.zookeeper.component }}{{ end }}
|
{{ range $i, $e := until (.Values.zookeeper.replicaCount | int) }}{{ if ne $i 0 }},{{ end }}{{ template "pulsar.fullname" $global }}-{{ $global.Values.zookeeper.component }}-{{ printf "%d" $i }}.{{ template "pulsar.fullname" $global }}-{{ $global.Values.zookeeper.component }}{{ end }}
|
||||||
clusterName: {{ template "pulsar.fullname" . }}
|
clusterName: {{ template "pulsar.fullname" . }}
|
||||||
functionsWorkerEnabled: "true"
|
functionsWorkerEnabled: "true"
|
||||||
PF_pulsarFunctionsCluster: {{ template "pulsar.fullname" . }}
|
PF_pulsarFunctionsCluster: {{ template "pulsar.fullname" . }}
|
||||||
|
|||||||
@ -33,10 +33,10 @@ metadata:
|
|||||||
data:
|
data:
|
||||||
zookeeperServers:
|
zookeeperServers:
|
||||||
{{- $global := . }}
|
{{- $global := . }}
|
||||||
{{ range $i, $e := until (.Values.zookeeper.replicaCount | int) }}{{ if ne $i 0 }},{{ end }}{{ printf "%s-%s-%s-%d.%s-%s-%s" $global.Release.Name $global.Chart.Name $global.Values.zookeeper.component $i $global.Release.Name $global.Chart.Name $global.Values.zookeeper.component }}{{ end }}
|
{{ range $i, $e := until (.Values.zookeeper.replicaCount | int) }}{{ if ne $i 0 }},{{ end }}{{ template "pulsar.fullname" $global }}-{{ $global.Values.zookeeper.component }}-{{ printf "%d" $i }}.{{ template "pulsar.fullname" $global }}-{{ $global.Values.zookeeper.component }}{{ end }}
|
||||||
configurationStoreServers:
|
configurationStoreServers:
|
||||||
{{- $global := . }}
|
{{- $global := . }}
|
||||||
{{ range $i, $e := until (.Values.zookeeper.replicaCount | int) }}{{ if ne $i 0 }},{{ end }}{{ printf "%s-%s-%s-%d.%s-%s-%s" $global.Release.Name $global.Chart.Name $global.Values.zookeeper.component $i $global.Release.Name $global.Chart.Name $global.Values.zookeeper.component }}{{ end }}
|
{{ range $i, $e := until (.Values.zookeeper.replicaCount | int) }}{{ if ne $i 0 }},{{ end }}{{ template "pulsar.fullname" $global }}-{{ $global.Values.zookeeper.component }}-{{ printf "%d" $i }}.{{ template "pulsar.fullname" $global }}-{{ $global.Values.zookeeper.component }}{{ end }}
|
||||||
clusterName: {{ template "pulsar.fullname" . }}
|
clusterName: {{ template "pulsar.fullname" . }}
|
||||||
{{ toYaml .Values.proxy.configData | indent 2 }}
|
{{ toYaml .Values.proxy.configData | indent 2 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@ -103,7 +103,7 @@ spec:
|
|||||||
- name: ZOOKEEPER_SERVERS
|
- name: ZOOKEEPER_SERVERS
|
||||||
value:
|
value:
|
||||||
{{- $global := . }}
|
{{- $global := . }}
|
||||||
{{ range $i, $e := until (.Values.zookeeper.replicaCount | int) }}{{ if ne $i 0 }},{{ end }}{{ printf "%s-%s-%s-%d" $global.Release.Name $global.Chart.Name $global.Values.zookeeper.component $i }}{{ end }}
|
{{ range $i, $e := until (.Values.zookeeper.replicaCount | int) }}{{ if ne $i 0 }},{{ end }}{{ template "pulsar.fullname" $global }}-{{ $global.Values.zookeeper.component }}-{{ printf "%d" $i }}{{ end }}
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: "{{ template "pulsar.fullname" . }}-{{ .Values.zookeeper.component }}"
|
name: "{{ template "pulsar.fullname" . }}-{{ .Values.zookeeper.component }}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user