Skip to content

Commit

Permalink
fix(meta): remove old config-id arg (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc authored Dec 12, 2024
1 parent 7c4e28a commit 02e4265
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion charts/databend-meta/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,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.9.6
version: 0.9.7

# 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
18 changes: 9 additions & 9 deletions charts/databend-meta/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,23 +59,23 @@ spec:
case ${BASH_REMATCH[2]} in
0)
echo "initialize leader node";
exec /databend-meta --id ${ID} --config-id ${ID} \
exec /databend-meta --id ${ID} \
--single \
--raft-advertise-host "${POD_NAME}.{{ $fullName }}.${POD_NAMESPACE}.svc.cluster.local" \
--grpc-api-advertise-host "${POD_NAME}.{{ $fullName }}.${POD_NAMESPACE}.svc.cluster.local" \
--config-file /etc/databend/meta.yaml
;;
*)
echo "initialize follower node";
exec /databend-meta --id ${ID} --config-id ${ID} \
exec /databend-meta --id ${ID} \
--join "${NAME}-0.{{ $fullName }}.${POD_NAMESPACE}.svc.cluster.local:28004" \
--raft-advertise-host "${POD_NAME}.{{ $fullName }}.${POD_NAMESPACE}.svc.cluster.local" \
--grpc-api-advertise-host "${POD_NAME}.{{ $fullName }}.${POD_NAMESPACE}.svc.cluster.local" \
--config-file /etc/databend/meta.yaml
;;
esac
{{- else }}
exec /databend-meta --id ${ID} --config-id ${ID} \
exec /databend-meta --id ${ID} \
{{- range $i := until $replicaCount }}
--join "${NAME}-{{ $i }}.{{ $fullName }}.${POD_NAMESPACE}.svc.cluster.local:28004" \
{{- end }}
Expand All @@ -99,18 +99,18 @@ spec:
httpGet:
path: /v1/health
port: admin
initialDelaySeconds: {{ default 5 .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ default 15 .Values.livenessProbe.initialDelaySeconds }}
failureThreshold: {{ default 3 .Values.livenessProbe.initialDelaySeconds }}
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
{{- end }}
{{- if .Values.readinessProbe.enabled }}
readinessProbe:
httpGet:
path: /v1/health
port: admin
initialDelaySeconds: {{ default 5 .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ default 15 .Values.readinessProbe.initialDelaySeconds }}
failureThreshold: {{ default 3 .Values.readinessProbe.initialDelaySeconds }}
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
Expand Down
6 changes: 6 additions & 0 deletions charts/databend-meta/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,14 @@ serviceAccount:

livenessProbe:
enabled: true
initialDelaySeconds: 5
periodSeconds: 15
failureThreshold: 3
readinessProbe:
enabled: true
initialDelaySeconds: 5
periodSeconds: 15
failureThreshold: 3

service:
type: ClusterIP
Expand Down

0 comments on commit 02e4265

Please sign in to comment.