diff --git a/charts/greptimedb-cluster/Chart.yaml b/charts/greptimedb-cluster/Chart.yaml index a59a6b8..410d387 100644 --- a/charts/greptimedb-cluster/Chart.yaml +++ b/charts/greptimedb-cluster/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: greptimedb-cluster description: A Helm chart for deploying GreptimeDB cluster in Kubernetes type: application -version: 0.1.9 +version: 0.1.10 appVersion: 0.5.0 diff --git a/charts/greptimedb-cluster/README.md b/charts/greptimedb-cluster/README.md index cc55c15..db97a57 100644 --- a/charts/greptimedb-cluster/README.md +++ b/charts/greptimedb-cluster/README.md @@ -2,7 +2,7 @@ A Helm chart for deploying GreptimeDB cluster in Kubernetes -![Version: 0.1.9](https://img.shields.io/badge/Version-0.1.9-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.5.0](https://img.shields.io/badge/AppVersion-0.5.0-informational?style=flat-square) +![Version: 0.1.10](https://img.shields.io/badge/Version-0.1.10-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.5.0](https://img.shields.io/badge/AppVersion-0.5.0-informational?style=flat-square) ## Source Code @@ -65,6 +65,7 @@ helm uninstall mycluster -n default | Key | Type | Default | Description | |-----|------|---------|-------------| +| datanode | object | `{"config":"","podTemplate":{"affinity":{},"annotations":{},"labels":{},"main":{"args":[],"command":[],"env":[],"image":"","resources":{"limits":{},"requests":{}}},"nodeSelector":{},"serviceaccount":{"annotations":{},"create":false},"tolerations":[]},"replicas":3,"storage":{"dataHome":"/data/greptimedb","storageClassName":null,"storageRetainPolicy":"Retain","storageSize":"10Gi","walDir":"/data/greptimedb/wal"}}` | Datanode configure | | datanode.config | string | `""` | Extra datanode config in toml format. | | datanode.podTemplate | object | `{"affinity":{},"annotations":{},"labels":{},"main":{"args":[],"command":[],"env":[],"image":"","resources":{"limits":{},"requests":{}}},"nodeSelector":{},"serviceaccount":{"annotations":{},"create":false},"tolerations":[]}` | The pod template for datanode | | datanode.podTemplate.affinity | object | `{}` | The pod affinity | @@ -87,6 +88,7 @@ helm uninstall mycluster -n default | 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 | `"/data/greptimedb/wal"` | The wal directory of the storage, default is "/data/greptimedb/wal" | +| frontend | object | `{"config":"","podTemplate":{"affinity":{},"annotations":{},"labels":{},"main":{"args":[],"command":[],"env":[],"image":"","resources":{"limits":{},"requests":{}}},"nodeSelector":{},"serviceAccountName":"","tolerations":[]},"replicas":1,"service":{},"tls":{}}` | Frontend configure | | frontend.config | string | `""` | Extra frontend config in toml format. | | frontend.podTemplate | object | `{"affinity":{},"annotations":{},"labels":{},"main":{"args":[],"command":[],"env":[],"image":"","resources":{"limits":{},"requests":{}}},"nodeSelector":{},"serviceAccountName":"","tolerations":[]}` | The pod template for frontend | | frontend.podTemplate.affinity | object | `{}` | The pod affinity | @@ -114,6 +116,7 @@ helm uninstall mycluster -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.19"` | Initializer image tag | +| meta | object | `{"config":"","etcdEndpoints":"etcd.default.svc.cluster.local:2379","podTemplate":{"affinity":{},"annotations":{},"labels":{},"main":{"args":[],"command":[],"env":[],"image":"","resources":{"limits":{},"requests":{}}},"nodeSelector":{},"serviceAccountName":"","tolerations":[]},"replicas":1,"storeKeyPrefix":""}` | Meta configure | | meta.config | string | `""` | Extra Meta config in toml format. | | meta.etcdEndpoints | string | `"etcd.default.svc.cluster.local:2379"` | Meta etcd endpoints | | meta.podTemplate | object | `{"affinity":{},"annotations":{},"labels":{},"main":{"args":[],"command":[],"env":[],"image":"","resources":{"limits":{},"requests":{}}},"nodeSelector":{},"serviceAccountName":"","tolerations":[]}` | The pod template for meta | @@ -131,6 +134,7 @@ helm uninstall mycluster -n default | meta.podTemplate.serviceAccountName | string | `""` | The service account for meta | | meta.podTemplate.tolerations | list | `[]` | The pod tolerations | | meta.replicas | int | `1` | Meta replicas | +| meta.storeKeyPrefix | string | `""` | Meta will store data with this key prefix | | mysqlServicePort | int | `4002` | GreptimeDB mysql service port | | objectStorage | object | `{"oss":{},"s3":{}}` | Configure to object storage | | openTSDBServicePort | int | `4242` | GreptimeDB opentsdb service port | @@ -139,5 +143,6 @@ helm uninstall mycluster -n default | prometheusMonitor.enabled | bool | `false` | Create PodMonitor resource for scraping metrics using PrometheusOperator | | prometheusMonitor.interval | string | `"30s"` | Interval at which metrics should be scraped | | prometheusMonitor.labels | object | `{"release":"prometheus"}` | Add labels to the PodMonitor | -| resources.limits | object | `{"cpu":"500m","memory":"512Mi"}` | The resources limits for the container | +| reloadWhenConfigChange | bool | `false` | Enable configure reloading. This option need to be supported by the Reloader(https://github.com/stakater/Reloader). | +| resources.limits | object | `{"cpu":"1","memory":"1Gi"}` | The resources limits for the container | | resources.requests | object | `{"cpu":"500m","memory":"512Mi"}` | The requested resources for the container | diff --git a/charts/greptimedb-cluster/templates/NOTES.txt b/charts/greptimedb-cluster/templates/NOTES.txt index cfac1e6..c1b9eae 100644 --- a/charts/greptimedb-cluster/templates/NOTES.txt +++ b/charts/greptimedb-cluster/templates/NOTES.txt @@ -9,4 +9,4 @@ Installed components: * greptimedb-datanode * greptimedb-meta -The greptimedb-cluster is starting, use `kubectl get pod -n {{ .Release.Namespace }}` to check its status. \ No newline at end of file +The greptimedb-cluster is starting, use `kubectl get pods -n {{ .Release.Namespace }}` to check its status. \ No newline at end of file diff --git a/charts/greptimedb-cluster/templates/cluster.yaml b/charts/greptimedb-cluster/templates/cluster.yaml index 6a6ee3e..ca8ccfc 100644 --- a/charts/greptimedb-cluster/templates/cluster.yaml +++ b/charts/greptimedb-cluster/templates/cluster.yaml @@ -16,6 +16,7 @@ spec: - name: {{ . }} {{- end }} {{- end }} + reloadWhenConfigChange: {{ .Values.reloadWhenConfigChange }} frontend: replicas: {{ .Values.frontend.replicas }} {{- if .Values.frontend.config }} @@ -74,6 +75,9 @@ spec: etcdEndpoints: - {{ .Values.meta.etcdEndpoints }} {{- end }} + {{- if .Values.meta.storeKeyPrefix }} + storeKeyPrefix: {{ .Values.meta.storeKeyPrefix }} + {{- end }} template: main: {{- if .Values.meta.podTemplate.main.image }} diff --git a/charts/greptimedb-cluster/values.yaml b/charts/greptimedb-cluster/values.yaml index 24515ff..16dd0ce 100644 --- a/charts/greptimedb-cluster/values.yaml +++ b/charts/greptimedb-cluster/values.yaml @@ -23,9 +23,13 @@ resources: memory: 512Mi # -- The resources limits for the container limits: - cpu: 500m - memory: 512Mi + cpu: "1" + memory: "1Gi" +# -- Enable configure reloading. This option need to be supported by the Reloader(https://github.com/stakater/Reloader). +reloadWhenConfigChange: false + +# -- Frontend configure frontend: # -- Frontend replicas replicas: 1 @@ -80,6 +84,7 @@ frontend: tls: {} # secretName: greptimedb-frontend-tls +# -- Meta configure meta: # -- Meta replicas replicas: 1 @@ -130,6 +135,10 @@ meta: # -- Meta etcd endpoints etcdEndpoints: "etcd.default.svc.cluster.local:2379" + # -- Meta will store data with this key prefix + storeKeyPrefix: "" + +# -- Datanode configure datanode: # -- Datanode replicas replicas: 3 @@ -194,16 +203,12 @@ datanode: # -- GreptimeDB http service port httpServicePort: 4000 - # -- GreptimeDB grpc service port grpcServicePort: 4001 - # -- GreptimeDB mysql service port mysqlServicePort: 4002 - # -- GreptimeDB postgres service port postgresServicePort: 4003 - # -- GreptimeDB opentsdb service port openTSDBServicePort: 4242 diff --git a/charts/greptimedb-operator/Chart.yaml b/charts/greptimedb-operator/Chart.yaml index 1ba82c6..93d614b 100644 --- a/charts/greptimedb-operator/Chart.yaml +++ b/charts/greptimedb-operator/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 kubeVersion: ">=1.18.0-0" description: The greptimedb-operator Helm chart for Kubernetes name: greptimedb-operator -appVersion: 0.1.0-alpha.19 -version: 0.1.5 +appVersion: 0.1.0-alpha.20 +version: 0.1.6 type: application home: https://github.com/GreptimeTeam/greptimedb-operator sources: diff --git a/charts/greptimedb-operator/README.md b/charts/greptimedb-operator/README.md index 33338b6..160fd09 100644 --- a/charts/greptimedb-operator/README.md +++ b/charts/greptimedb-operator/README.md @@ -2,7 +2,7 @@ The greptimedb-operator Helm chart for Kubernetes -![Version: 0.1.5](https://img.shields.io/badge/Version-0.1.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0-alpha.19](https://img.shields.io/badge/AppVersion-0.1.0--alpha.19-informational?style=flat-square) +![Version: 0.1.6](https://img.shields.io/badge/Version-0.1.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0-alpha.20](https://img.shields.io/badge/AppVersion-0.1.0--alpha.20-informational?style=flat-square) ## Source Code - https://github.com/GreptimeTeam/greptimedb-operator @@ -45,7 +45,7 @@ Kubernetes: `>=1.18.0-0` | image.pullSecrets | list | `[]` | The image pull secrets | | image.registry | string | `"docker.io"` | The image registry | | image.repository | string | `"greptime/greptimedb-operator"` | The image repository | -| image.tag | string | `"0.1.0-alpha.19"` | The image tag | +| image.tag | string | `"0.1.0-alpha.20"` | The image tag | | nameOverride | string | `""` | String to partially override release template name | | nodeSelector | object | `{}` | The operator node selector | | rbac.create | bool | `true` | Install role based access control | diff --git a/charts/greptimedb-operator/crds/greptimedbcluster.yaml b/charts/greptimedb-operator/crds/greptimedbcluster.yaml index 4fa367a..bc6dfbe 100644 --- a/charts/greptimedb-operator/crds/greptimedbcluster.yaml +++ b/charts/greptimedb-operator/crds/greptimedbcluster.yaml @@ -8050,6 +8050,8 @@ spec: servicePort: format: int32 type: integer + storeKeyPrefix: + type: string template: properties: activeDeadlineSeconds: @@ -10744,6 +10746,8 @@ spec: prometheusServicePort: format: int32 type: integer + reloadWhenConfigChange: + type: boolean version: type: string type: object diff --git a/charts/greptimedb-operator/values.yaml b/charts/greptimedb-operator/values.yaml index 18a85b0..672ca43 100644 --- a/charts/greptimedb-operator/values.yaml +++ b/charts/greptimedb-operator/values.yaml @@ -8,7 +8,7 @@ image: # -- The image pull policy for the controller imagePullPolicy: IfNotPresent # -- The image tag - tag: 0.1.0-alpha.19 + tag: 0.1.0-alpha.20 # -- The image pull secrets pullSecrets: []