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

feat: add opentsdb port for greptimedb standalone #83

Merged
merged 4 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from 3 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-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
5 changes: 3 additions & 2 deletions 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 @@ -33,7 +33,7 @@ helm uninstall greptimedb-standalone -n default
| args | list | `[]` | The container args |
| command | list | `[]` | The container command |
| dnsConfig | object | `{}` | DNS configuration for pod |
| env | object | `{"GREPTIMEDB_STANDALONE__HTTP__ADDR":"0.0.0.0:4000"}` | Environment variables |
| env | object | `{"GREPTIMEDB_STANDALONE__GRPC__ADDR":"0.0.0.0:4001","GREPTIMEDB_STANDALONE__HTTP__ADDR":"0.0.0.0:4000","GREPTIMEDB_STANDALONE__MYSQL__ADDR":"0.0.0.0:4002","GREPTIMEDB_STANDALONE__OPENTSDB__ADDR":"0.0.0.0:4242","GREPTIMEDB_STANDALONE__POSTGRES__ADDR":"0.0.0.0:4003"}` | Environment variables |
| envFrom | object | `{}` | Maps all the keys on a configmap or secret as environment variables |
| fullnameOverride | string | `""` | Provide a name to substitute for the full names of resources |
| grpcServicePort | int | `4001` | GreptimeDB grpc service port |
Expand All @@ -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"
zyy17 marked this conversation as resolved.
Show resolved Hide resolved
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
Loading