Skip to content

Commit

Permalink
Merge pull request #21 from junnplus/meta
Browse files Browse the repository at this point in the history
feat: add config for meta
  • Loading branch information
junnplus authored May 23, 2022
2 parents b0605f6 + cc8de76 commit f194e18
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
6 changes: 6 additions & 0 deletions charts/databend-meta/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: common
repository: https://charts.bitnami.com/bitnami
version: 1.14.1
digest: sha256:aeff42721b615c0387050b4bf03321c1a70b709501de3cd9b5a40c0ca47f81a9
generated: "2022-05-23T20:37:56.246030998+08:00"
2 changes: 1 addition & 1 deletion charts/databend-meta/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,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.1.2
version: 0.1.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
Expand Down
10 changes: 7 additions & 3 deletions charts/databend-meta/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,22 +97,26 @@ spec:
fieldRef:
fieldPath: status.podIP
- name: METASRV_LOG_DIR
value: "/data/databend-meta/log"
value: {{ .Values.config.logDir }}
- name: METASRV_LOG_LEVEL
value: {{ .Values.config.logLevel }}
- name: METASRV_METRIC_API_ADDRESS
value: 0.0.0.0:28001
- name: ADMIN_API_ADDRESS
value: 0.0.0.0:28002
- name: METASRV_GRPC_API_ADDRESS
value: 0.0.0.0:9191
- name: KVSRV_RAFT_DIR
value: "/data/databend-meta/raft"
value: {{ .Values.config.raft.dir }}
- name: KVSRV_LISTEN_HOST
value: 0.0.0.0
- name: KVSRV_API_PORT
value: "28003"
volumeMounts:
{{- if .Values.persistence.enabled }}
- name: data
mountPath: /data/databend-meta
mountPath: {{ .Values.persistence.mountPath }}
{{- end }}
{{- if .Values.sidecars }}
{{- include "common.tplvalues.render" (dict "value" .Values.sidecars "context" $) | nindent 8 }}
{{- end }}
Expand Down
8 changes: 8 additions & 0 deletions charts/databend-meta/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,18 @@ service:
admin: 28002
grpc: 9191

config:
logDir: /data/databend-meta/log
logLevel: INFO

raft:
dir: /data/databend-meta/raft

persistence:
enabled: true
storageClass: ""
size: 10Gi
mountPath: /data/databend-meta

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
Expand Down

0 comments on commit f194e18

Please sign in to comment.