Skip to content

Commit

Permalink
chore: update operator version (#96)
Browse files Browse the repository at this point in the history
* chore: update operator version

* chore: add reloadWhenConfigChange configure

* chore: make docs

* chore: change greptimedb-cluster version to 0.1.10
  • Loading branch information
daviderli614 authored Jan 8, 2024
1 parent fbc565e commit c5e2d59
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 15 deletions.
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.9
version: 0.1.10
appVersion: 0.5.0
9 changes: 7 additions & 2 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.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

Expand Down Expand Up @@ -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 |
Expand All @@ -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 |
Expand Down Expand Up @@ -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 |
Expand All @@ -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 |
Expand All @@ -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 |
2 changes: 1 addition & 1 deletion charts/greptimedb-cluster/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
The greptimedb-cluster is starting, use `kubectl get pods -n {{ .Release.Namespace }}` to check its status.
4 changes: 4 additions & 0 deletions charts/greptimedb-cluster/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ spec:
- name: {{ . }}
{{- end }}
{{- end }}
reloadWhenConfigChange: {{ .Values.reloadWhenConfigChange }}
frontend:
replicas: {{ .Values.frontend.replicas }}
{{- if .Values.frontend.config }}
Expand Down Expand Up @@ -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 }}
Expand Down
17 changes: 11 additions & 6 deletions charts/greptimedb-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -80,6 +84,7 @@ frontend:
tls: {}
# secretName: greptimedb-frontend-tls

# -- Meta configure
meta:
# -- Meta replicas
replicas: 1
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions charts/greptimedb-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions charts/greptimedb-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 |
Expand Down
4 changes: 4 additions & 0 deletions charts/greptimedb-operator/crds/greptimedbcluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8050,6 +8050,8 @@ spec:
servicePort:
format: int32
type: integer
storeKeyPrefix:
type: string
template:
properties:
activeDeadlineSeconds:
Expand Down Expand Up @@ -10744,6 +10746,8 @@ spec:
prometheusServicePort:
format: int32
type: integer
reloadWhenConfigChange:
type: boolean
version:
type: string
type: object
Expand Down
2 changes: 1 addition & 1 deletion charts/greptimedb-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: []

Expand Down

0 comments on commit c5e2d59

Please sign in to comment.