Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove 'componentSpec' field and add 'config' and 'podTemplatefield' #87

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/greptimedb-cluster/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: greptimedb-cluster
description: A Helm chart for deploying GreptimeDB cluster in Kubernetes
type: application
version: 0.1.3
version: 0.1.4
appVersion: 0.4.2
11 changes: 7 additions & 4 deletions charts/greptimedb-cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A Helm chart for deploying GreptimeDB cluster in Kubernetes

![Version: 0.1.3](https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.4.2](https://img.shields.io/badge/AppVersion-0.4.2-informational?style=flat-square)
![Version: 0.1.4](https://img.shields.io/badge/Version-0.1.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.4.2](https://img.shields.io/badge/AppVersion-0.4.2-informational?style=flat-square)

## Source Code

Expand Down Expand Up @@ -67,13 +67,15 @@ helm uninstall greptimedb-cluster -n default

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| datanode.componentSpec | object | `{}` | Datanode componentSpec |
| datanode.config | string | `""` | Extra datanode config in toml format. |
| datanode.podTemplate | object | `{}` | The pod template for datanode. |
| datanode.replicas | int | `3` | Datanode replicas |
| datanode.storage.storageClassName | string | `nil` | Storage class for datanode persistent volume |
| datanode.storage.storageRetainPolicy | string | `"Retain"` | Storage retain policy for datanode persistent volume |
| datanode.storage.storageSize | string | `"10Gi"` | Storage size for datanode persistent volume |
| datanode.storage.walDir | string | `"/tmp/greptimedb/wal"` | The wal directory of the storage, default is "/tmp/greptimedb/wal" |
| frontend.componentSpec | object | `{}` | Frontend componentSpec |
| frontend.config | string | `""` | Extra frontend config in toml format. |
| frontend.podTemplate | object | `{}` | The pod template for frontend. |
| frontend.replicas | int | `1` | Frontend replicas |
| frontend.service | object | `{}` | Frontend service |
| frontend.tls | object | `{}` | Frontend tls configure |
Expand All @@ -86,8 +88,9 @@ helm uninstall greptimedb-cluster -n default
| initializer.registry | string | `"docker.io"` | Initializer image registry |
| initializer.repository | string | `"greptime/greptimedb-initializer"` | Initializer image repository |
| initializer.tag | string | `"0.1.0-alpha.17"` | Initializer image tag |
| meta.componentSpec | object | `{}` | Meta componentSpec |
| meta.config | string | `""` | Extra Meta config in toml format. |
| meta.etcdEndpoints | string | `"etcd.default.svc.cluster.local:2379"` | Meta etcd endpoints |
| meta.podTemplate | object | `{}` | The pod template for Meta. |
| meta.replicas | int | `1` | Meta replicas |
| mysqlServicePort | int | `4002` | GreptimeDB mysql service port |
| openTSDBServicePort | int | `4242` | GreptimeDB opentsdb service port |
Expand Down
24 changes: 18 additions & 6 deletions charts/greptimedb-cluster/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,41 @@ spec:
{{- end }}
frontend:
replicas: {{ .Values.frontend.replicas }}
{{- if .Values.frontend.config }}
config: |-
{{ .Values.frontend.config | nindent 6 }}
{{- end }}
{{- if .Values.frontend.tls }}
tls:
secretName: {{ .Values.frontend.tls.certificates.secretName }}
{{- end }}
{{- if .Values.frontend.service }}
service: {{- toYaml .Values.frontend.service | nindent 6 }}
{{- end }}
{{- if .Values.frontend.componentSpec }}
template: {{- toYaml .Values.frontend.componentSpec | nindent 6 }}
{{- if .Values.frontend.podTemplate }}
template: {{- toYaml .Values.frontend.podTemplate | nindent 6 }}
{{- end }}
meta:
replicas: {{ .Values.meta.replicas }}
{{- if .Values.meta.config }}
config: |-
{{ .Values.meta.config | nindent 6 }}
{{- end }}
{{- if .Values.meta.etcdEndpoints }}
etcdEndpoints:
- {{ .Values.meta.etcdEndpoints }}
{{- end }}
{{- if .Values.meta.componentSpec }}
template: {{- toYaml .Values.meta.componentSpec | nindent 6 }}
{{- if .Values.meta.podTemplate }}
template: {{- toYaml .Values.meta.podTemplate | nindent 6 }}
{{- end }}
datanode:
replicas: {{ .Values.datanode.replicas }}
{{- if .Values.datanode.componentSpec }}
template: {{- toYaml .Values.datanode.componentSpec | nindent 6 }}
{{- if .Values.datanode.config }}
config: |-
{{ .Values.datanode.config | nindent 6 }}
{{- end }}
{{- if .Values.datanode.podTemplate }}
template: {{- toYaml .Values.datanode.podTemplate | nindent 6 }}
{{- end }}
storage:
storageClassName: {{ .Values.datanode.storage.storageClassName }}
Expand Down
27 changes: 21 additions & 6 deletions charts/greptimedb-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,15 @@ resources:
frontend:
# -- Frontend replicas
replicas: 1

# -- Extra frontend config in toml format.
config: ""

# -- The pod template for frontend.
podTemplate: {}

# -- Frontend service
service: {}
# -- Frontend componentSpec
componentSpec: {}

# -- Frontend tls configure
tls: {}
Expand All @@ -41,16 +46,26 @@ frontend:
meta:
# -- Meta replicas
replicas: 1

# -- Extra Meta config in toml format.
config: ""

# -- The pod template for Meta.
podTemplate: {}

# -- Meta etcd endpoints
etcdEndpoints: "etcd.default.svc.cluster.local:2379"
# -- Meta componentSpec
componentSpec: {}

datanode:
# -- Datanode replicas
replicas: 3
# -- Datanode componentSpec
componentSpec: {}

# -- Extra datanode config in toml format.
config: ""

# -- The pod template for datanode.
podTemplate: {}

storage:
# -- Storage class for datanode persistent volume
storageClassName: null
Expand Down
Loading