diff --git a/kubernetes/helm/templates/_helpers.tpl b/kubernetes/helm/templates/_helpers.tpl index fec2d33b82c..75abcb33537 100644 --- a/kubernetes/helm/templates/_helpers.tpl +++ b/kubernetes/helm/templates/_helpers.tpl @@ -63,8 +63,6 @@ Create the name of the service account to use {{- end -}} {{- define "metad.endpoints" -}} -{{- $thriftPort := toString (.Values.port.metad.thriftPort) }} - {{- range $key, $value := (.Values.Hosts) }} -{{ $value }}:{{ $thriftPort }}, - {{- end -}} +{{- $node := .Values.MetadHosts | list }} +{{- join "," $node -}} {{- end -}} \ No newline at end of file diff --git a/kubernetes/helm/values.yaml b/kubernetes/helm/values.yaml index d4bdf2de803..b4b38e2674a 100644 --- a/kubernetes/helm/values.yaml +++ b/kubernetes/helm/values.yaml @@ -87,10 +87,10 @@ port: httpPort: 11000 http2Port: 11002 -Hosts: - - 192.168.8.21 - - 192.168.8.22 - - 192.168.8.23 +MetadHosts: + - 192.168.8.21:44500 + - 192.168.8.22:44500 + - 192.168.8.23:44500 ## Storage Setting of Nebula-Metad and Nebula-Storaged storage: