Skip to content

Commit 8915bf0

Browse files
authored
feat(greptimedb-standalone): add extra volume mount (#187)
1 parent f465f7d commit 8915bf0

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

charts/greptimedb-standalone/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: greptimedb-standalone
33
description: A Helm chart for deploying standalone greptimedb
44
type: application
5-
version: 0.1.27
5+
version: 0.1.28
66
appVersion: 0.9.5
77
home: https://github.com/GreptimeTeam/greptimedb
88
sources:

charts/greptimedb-standalone/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A Helm chart for deploying standalone greptimedb
44

5-
![Version: 0.1.27](https://img.shields.io/badge/Version-0.1.27-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.9.5](https://img.shields.io/badge/AppVersion-0.9.5-informational?style=flat-square)
5+
![Version: 0.1.28](https://img.shields.io/badge/Version-0.1.28-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.9.5](https://img.shields.io/badge/AppVersion-0.9.5-informational?style=flat-square)
66

77
## Source Code
88
- https://github.com/GreptimeTeam/greptimedb
@@ -57,6 +57,8 @@ helm uninstall greptimedb-standalone -n default
5757
| configToml | string | `"mode = 'standalone'\n"` | The extra configuration for greptimedb |
5858
| dataHome | string | `"/data/greptimedb/"` | Storage root directory |
5959
| env | object | `{"GREPTIMEDB_STANDALONE__HTTP__ADDR":"0.0.0.0:4000"}` | Environment variables |
60+
| extraVolumeMounts | list | `[]` | Volume mounts to add to the pods |
61+
| extraVolumes | list | `[]` | Volumes to add to the pods |
6062
| fullnameOverride | string | `""` | Provide a name to substitute for the full names of resources |
6163
| grpcServicePort | int | `4001` | GreptimeDB grpc service port |
6264
| httpServicePort | int | `4000` | GreptimeDB http service port |

charts/greptimedb-standalone/templates/statefulset.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,23 @@ spec:
116116
mountPath: /etc/greptimedb
117117
readOnly: true
118118
{{- end }}
119+
{{- with .Values.extraVolumeMounts }}
120+
{{- toYaml . | nindent 12 }}
121+
{{- end }}
119122
{{- with .Values.resources }}
120123
resources:
121124
{{- toYaml . | nindent 12 }}
122125
{{- end }}
123-
{{- if .Values.configToml }}
126+
{{- if or .Values.configToml .Values.extraVolumes }}
124127
volumes:
128+
{{- if .Values.configToml }}
125129
- name: config
126130
configMap:
127131
name: {{ .Release.Name }}-config
132+
{{- end }}
133+
{{- with .Values.extraVolumes }}
134+
{{- toYaml . | nindent 8 }}
135+
{{- end }}
128136
{{- end }}
129137
{{- with .Values.affinity }}
130138
affinity:

charts/greptimedb-standalone/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ resources: {}
127127
nodeSelector: {}
128128
# disktype: ssd
129129

130+
# -- Volume mounts to add to the pods
131+
extraVolumeMounts: []
132+
# -- Volumes to add to the pods
133+
extraVolumes: []
134+
130135
# -- Tolerations to apply pod
131136
tolerations: {}
132137
# - key: "key1"

0 commit comments

Comments
 (0)