diff --git a/charts/databend-query/Chart.yaml b/charts/databend-query/Chart.yaml index 69777a2..cf07d58 100644 --- a/charts/databend-query/Chart.yaml +++ b/charts/databend-query/Chart.yaml @@ -25,7 +25,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.10.2 +version: 0.10.3 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/databend-query/templates/configmap.yaml b/charts/databend-query/templates/configmap.yaml index 87aa70e..1b61a4a 100644 --- a/charts/databend-query/templates/configmap.yaml +++ b/charts/databend-query/templates/configmap.yaml @@ -47,7 +47,11 @@ data: level = {{ .Values.config.log.stderr.level | default "WARN" | quote }} [meta] + {{- if .Values.config.meta.generateEndpoints }} + endpoints = [{{ range $i := (untilStep 0 (int $.Values.config.meta.replicas) 1) }}"{{ $.Release.Name }}-databend-meta-{{ $i }}.{{ $.Release.Name }}-databend-meta.{{ $.Values.config.meta.namespace | default $.Release.Namespace }}.svc.cluster.local:{{ $.Values.config.meta.port }}",{{ end }}] + {{- else }} endpoints = [{{ range .Values.config.meta.endpoints }}{{ . | quote }},{{ end }}] + {{- end }} username = {{ .Values.config.meta.username | quote }} password = {{ .Values.config.meta.password | quote }} client_timeout_in_second = {{ .Values.config.meta.clientTimeoutInSecond | default 60 }} diff --git a/charts/databend-query/values.yaml b/charts/databend-query/values.yaml index a9c58a0..28d1461 100644 --- a/charts/databend-query/values.yaml +++ b/charts/databend-query/values.yaml @@ -93,6 +93,14 @@ config: # [meta] meta: + # If databend-meta is hosted in the same cluster as databend-data, you can enable this to generate endpoints in a K8s native way. + generateEndpoints: false + # Databend-meta replica count + replicas: 3 + # Databend-meta port if you need to change it + port: 9191 + # If databend-meta is located in the same cluster, but a different namespace, specify it here + namespace: "" # Set endpoints to use remote meta service endpoints: # ...svc.cluster.local:9191