Skip to content

Commit

Permalink
fix(query): use values for container ports (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc authored Oct 12, 2023
1 parent 3f91ce4 commit 0f6cc33
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[Databend](https://github.com/datafuselabs/databend) -- the open source Elastic and Scalable Modern Cloud Data Warehouse.

Databend Helm charts provide the installation of [Databend](https://github.com/datafuselabs/databend) components for kubernates.
Databend Helm charts provide the installation of [Databend](https://github.com/datafuselabs/databend) components for kubernetes.

### Charts
- [Databend Meta Helm Chart](charts/databend-meta)
Expand Down
2 changes: 1 addition & 1 deletion charts/databend-meta/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ helm install my-release databend/databend-meta --namespace databend --create-nam

Note that for a production cluster, you will likely want to override the following parameters in [values.yaml](values.yaml) with your own values.

- `resources.requests.memory` and `resources.limit.memory` allocate memory resource to query pods in your cluser.
- `resources.requests.memory` and `resources.limit.memory` allocate memory resource to query pods in your cluster.
- `replicaCount` defaults to `1`, We strongly recommend that you set to `3` for HA.
- `persistence.size` defaults to `10Gi` of disk space per pod, which you may increase or decrease for your use case.
- `persistence.storageClass` uses the default storage class for your environment.
Expand Down
2 changes: 1 addition & 1 deletion charts/databend-query/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ helm install my-release databend/databend-query --namespace databend --create-na

Note that for a production cluster, you will likely want to override the following parameters in [values.yaml](values.yaml) with your own values.

- `resources.requests.memory` and `resources.limit.memory` allocate memory resource to query pods in your cluser.
- `resources.requests.memory` and `resources.limit.memory` allocate memory resource to query pods in your cluster.
- `config.meta.address` indicates the grpc address of a [Databend Meta](../databend-meta) service.
- `config.storage.type` defaults to `fs` for testing only, `s3` is recommended in production.
- `config.storage.s3.accessKeyId` and `config.storage.s3.secretAccessKey` should be set when using `s3` storage, `config.storage.s3.endpointUrl` defaults to `https://s3.amazonaws.com`.
Expand Down
22 changes: 13 additions & 9 deletions charts/databend-query/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,23 +74,27 @@ spec:
fieldRef:
fieldPath: status.podIP
- name: QUERY_METRIC_API_ADDRESS
value: "$(POD_IP):7070"
value: "$(POD_IP):{{ .Values.service.ports.metric | default 7070 }}"
- name: QUERY_ADMIN_API_ADDRESS
value: "$(POD_IP):8080"
value: "$(POD_IP):{{ .Values.service.ports.admin | default 8080 }}"
- name: QUERY_FLIGHT_API_ADDRESS
value: "$(POD_IP):9090"
value: "$(POD_IP):{{ .Values.service.ports.flight | default 9090 }}"
- name: QUERY_HTTP_HANDLER_HOST
value: 0.0.0.0
- name: QUERY_HTTP_HANDLER_PORT
value: {{ .Values.service.ports.http | default 8000 | quote }}
- name: QUERY_FLIGHT_SQL_HANDLER_HOST
value: 0.0.0.0
- name: QUERY_FLIGHT_SQL_HANDLER_PORT
value: {{ .Values.service.ports.flightsql | default 8900 | quote }}
- name: QUERY_MYSQL_HANDLER_HOST
value: 0.0.0.0
- name: QUERY_MYSQL_HANDLER_PORT
value: "3307"
value: {{ .Values.service.ports.mysql | default 3307 | quote }}
- name: QUERY_CLICKHOUSE_HTTP_HANDLER_HOST
value: 0.0.0.0
- name: QUERY_CLICKHOUSE_HTTP_HANDLER_PORT
value: "8124"
- name: QUERY_HTTP_HANDLER_HOST
value: 0.0.0.0
- name: QUERY_HTTP_HANDLER_PORT
value: "8000"
value: {{ .Values.service.ports.ckhttp |default 8124 | quote }}
volumeMounts:
- name: config
# Note: subPath volume mount will not receive ConfigMap update.
Expand Down
2 changes: 1 addition & 1 deletion charts/databend-query/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ service:
flight: 9090

http: 8000
flight-sql: 8900
flightsql: 8900
mysql: 3307
ckhttp: 8124

Expand Down

0 comments on commit 0f6cc33

Please sign in to comment.