[fix][deploy]fix run on kubernetes bug (#10379)

* [fix][kubernetes]fix run on kubernetes bug

Fix the problem that the "REGISTRY_ZOOKEEPER_CONNECT_STRING" variable zookeeper port number is "nil"

* [fix][kubernetes]fix run on kubernetes bug

Fix the problem that the "REGISTRY_ZOOKEEPER_CONNECT_STRING" variable zookeeper port number is "nil"

(cherry picked from commit 5803d5c07c)
This commit is contained in:
Hwting 2022-06-09 15:57:20 +08:00 committed by devosend
parent 478463fe6a
commit f7b18fd59d
2 changed files with 3 additions and 1 deletions

View File

@ -112,7 +112,7 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
Create a default fully qualified zookkeeper quorum.
*/}}
{{- define "dolphinscheduler.zookeeper.quorum" -}}
{{- $port := default "2181" (.Values.zookeeper.service.port | toString) -}}
{{- $port := default "2181" .Values.zookeeper.service.port | toString -}}
{{- printf "%s:%s" (include "dolphinscheduler.zookeeper.fullname" .) $port -}}
{{- end -}}

View File

@ -52,6 +52,8 @@ externalDatabase:
## If not exists external registry, the zookeeper registry will be used by default.
zookeeper:
enabled: true
service:
port: 2181
fourlwCommandsWhitelist: "srvr,ruok,wchs,cons"
persistence:
enabled: false