Skip to content

Commit

Permalink
feat: add opentsdb port for greptimedb standalone (#83)
Browse files Browse the repository at this point in the history
* feat: enable more port for greptimedb standalone

* feat: enable opentsdb port

* feat: enable opentsdb port

* refactor: not listen port
  • Loading branch information
daviderli614 authored Oct 26, 2023
1 parent c92175c commit 2b45e9c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/greptimedb-standalone/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: greptimedb-standalone
description: A Helm chart for deploying standalone greptimedb
type: application
version: 0.1.2
version: 0.1.3
appVersion: 0.4.2
3 changes: 2 additions & 1 deletion charts/greptimedb-standalone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A Helm chart for deploying standalone greptimedb

![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-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.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)

## Source Code
- https://github.com/GreptimeTeam/greptimedb
Expand Down Expand Up @@ -50,6 +50,7 @@ helm uninstall greptimedb-standalone -n default
| mysqlServicePort | int | `4002` | GreptimeDB mysql service port |
| nameOverride | string | `""` | Overrides the chart's name |
| nodeSelector | object | `{}` | NodeSelector to apply pod |
| opentsdbServicePort | int | `4242` | GreptimeDB opentsdb service port |
| persistence.enableStatefulSetAutoDeletePVC | bool | `false` | Enable StatefulSetAutoDeletePVC feature |
| persistence.enabled | bool | `true` | Enable persistent disk |
| persistence.selector | string | `nil` | Selector for persistent disk |
Expand Down
4 changes: 4 additions & 0 deletions charts/greptimedb-standalone/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,9 @@ spec:
port: {{ .Values.postgresServicePort }}
targetPort: {{ .Values.postgresServicePort }}
protocol: TCP
- name: opentsdb
port: {{ .Values.opentsdbServicePort }}
targetPort: {{ .Values.opentsdbServicePort }}
protocol: TCP
selector:
{{- include "greptimedb-standalone.selectorLabels" . | nindent 4 }}
3 changes: 3 additions & 0 deletions charts/greptimedb-standalone/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ spec:
- containerPort: {{ .Values.postgresServicePort }}
name: postgres
protocol: TCP
- containerPort: {{ .Values.opentsdbServicePort }}
name: opentsdb
protocol: TCP
{{- if .Values.env }}
env:
{{- range $key, $val := .Values.env }}
Expand Down
6 changes: 6 additions & 0 deletions charts/greptimedb-standalone/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ args: []
# -- Environment variables
env:
GREPTIMEDB_STANDALONE__HTTP__ADDR: "0.0.0.0:4000"
# GREPTIMEDB_STANDALONE__GRPC__ADDR: "0.0.0.0:4001"
# GREPTIMEDB_STANDALONE__MYSQL__ADDR: "0.0.0.0:4002"
# GREPTIMEDB_STANDALONE__POSTGRES__ADDR: "0.0.0.0:4003"
# GREPTIMEDB_STANDALONE__OPENTSDB__ADDR: "0.0.0.0:4242"
# GREPTIMEDB_STANDALONE__HTTP__TIMEOUT: "120s"

# GREPTIMEDB_STANDALONE__WAL__FILE_SIZE: "128MB"
Expand Down Expand Up @@ -174,6 +178,8 @@ grpcServicePort: 4001
mysqlServicePort: 4002
# -- GreptimeDB postgres service port
postgresServicePort: 4003
# -- GreptimeDB opentsdb service port
opentsdbServicePort: 4242

service:
# -- Service type
Expand Down

0 comments on commit 2b45e9c

Please sign in to comment.