Skip to content

Commit

Permalink
feat(helm-charts): Update to version v0.28.28 (#3342)
Browse files Browse the repository at this point in the history
  • Loading branch information
lvauvillier committed Aug 30, 2021
1 parent f344ff3 commit c33473c
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 14 deletions.
2 changes: 1 addition & 1 deletion examples/helm-charts/cubejs/Chart.yaml
Expand Up @@ -3,7 +3,7 @@ name: cubejs
description: A Helm chart for Cubejs
type: application
version: 0.1.0
appVersion: "0.28.26"
appVersion: "0.28.28"
keywords:
- cubejs
maintainers:
Expand Down
5 changes: 3 additions & 2 deletions examples/helm-charts/cubejs/README.md
Expand Up @@ -183,6 +183,7 @@ cubestore:
| `global.apiSecret` | The secret key used to sign and verify JWTs. Generated on project scaffold | |
| `global.schemaPath` | The path where Cube.js loads schemas from. Defaults to schema | |
| `global.app` | An application ID used to uniquely identify the Cube.js deployment. Can be different for multitenant setups. Defaults to cubejs | |
| `global.rollupOnly` | If true, this instance of Cube.js will only query rollup pre-aggregations. Defaults to false | |
| `global.scheduledRefreshTimezones` | A comma-separated list of timezones to schedule refreshes for | |
| `global.webSockets` | If true, then use WebSocket for data fetching. Defaults to true | |
| `global.preAggregationsSchema` | The schema name to use for storing pre-aggregations true | |
Expand Down Expand Up @@ -309,7 +310,7 @@ cubestore:
| Name | Description | Value |
| -------------------------- | ---------------------------------------------------- | ----- |
| `master.affinity` | Affinity for pod assignment | `{}` |
| `master.spreadConstraints` | Topology spread constraint for pod assignment | `{}` |
| `master.spreadConstraints` | Topology spread constraint for pod assignment | `[]` |
| `master.resources` | Define resources requests and limits for single Pods | `{}` |

### Workers parameters
Expand All @@ -318,7 +319,7 @@ cubestore:
| --------------------------- | ---------------------------------------------------- | ----- |
| `workers.workersCount` | Number of workers to deploy | `1` |
| `workers.affinity` | Affinity for pod assignment | `{}` |
| `workers.spreadConstraints` | Topology spread constraint for pod assignment | `{}` |
| `workers.spreadConstraints` | Topology spread constraint for pod assignment | `[]` |
| `workers.resources` | Define resources requests and limits for single Pods | `{}` |

## Service parameters
Expand Down
4 changes: 4 additions & 0 deletions examples/helm-charts/cubejs/templates/common-env.tpl
Expand Up @@ -21,6 +21,10 @@
- name: CUBEJS_CACHE_AND_QUEUE_DRIVER
value: {{ .Values.global.cacheAndQueueDriver | quote }}
{{- end }}
{{- if .Values.global.rollupOnly }}
- name: CUBEJS_ROLLUP_ONLY
value: {{ .Values.global.rollupOnly | quote }}
{{- end }}
{{- if .Values.global.scheduledRefreshTimezones }}
- name: CUBEJS_SCHEDULED_REFRESH_TIMEZONES
value: {{ .Values.global.scheduledRefreshTimezones | quote }}
Expand Down
8 changes: 6 additions & 2 deletions examples/helm-charts/cubejs/values.yaml
Expand Up @@ -62,6 +62,10 @@ global:
##
app:

## If true, this instance of Cube.js will only query rollup pre-aggregations. Defaults to false
##
rollupOnly:

## A comma-separated list of timezones to schedule refreshes for.
##
scheduledRefreshTimezones:
Expand Down Expand Up @@ -431,7 +435,7 @@ master:
## Topology spread constraint for pod assignment
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
##
spreadConstraints: {}
spreadConstraints: []

## Define resources requests and limits for single Pods.
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
Expand All @@ -449,7 +453,7 @@ workers:
## topology spread constraint for pod assignment
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
##
spreadConstraints: {}
spreadConstraints: []

## Define resources requests and limits for single Pods.
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
Expand Down
2 changes: 1 addition & 1 deletion examples/helm-charts/cubestore/Chart.yaml
Expand Up @@ -3,7 +3,7 @@ name: cubestore
description: A Helm chart for Cubestore
type: application
version: 0.1.0
appVersion: "0.28.26"
appVersion: "0.28.28"
keywords:
- cubejs
- cubestore
Expand Down
11 changes: 5 additions & 6 deletions examples/helm-charts/cubestore/README.md
Expand Up @@ -96,10 +96,8 @@ By default local dir are not persisted. You can enable persistance on router and
| `cloudStorage.gcp.credentialsFromSecret.key` | A Base64 encoded JSON key file for connecting to Google Cloud. Required when using Google Cloud Storage (using secret) | |
| `cloudStorage.gcp.bucket` | The name of a bucket in GCS. Required when using GCS | |
| `cloudStorage.gcp.subPath` | The path in a GCS bucket to store pre-aggregations. Optional | |
| `cloudStorage.aws.accessKeyID` | The Access Key ID for AWS. Required when using AWS S3 |
| |
| `cloudStorage.aws.secretKey` | A Base64 encoded JSON key file for connecting to Google Cloud. Required when using Google Cloud Storage |
| |
| `cloudStorage.aws.accessKeyID` | The Access Key ID for AWS. Required when using AWS S3 | |
| `cloudStorage.aws.secretKey` | A Base64 encoded JSON key file for connecting to Google Cloud. Required when using Google Cloud Storage | |
| `cloudStorage.aws.secretKeyFromSecret.name` | The Secret Access Key for AWS. Required when using AWS S3 (using secret) | |
| `cloudStorage.aws.secretKeyFromSecret.key` | The Secret Access Key for AWS. Required when using AWS S3 (using secret) | |
| `cloudStorage.aws.bucket` | The name of a bucket in AWS S3. Required when using AWS S3 | |
Expand All @@ -113,12 +111,13 @@ By default local dir are not persisted. You can enable persistance on router and
| `router.httpPort` | The port for Cube Store to listen to HTTP connections on | `3030` |
| `router.metaPort` | The port for the router node to listen for connections on | `9999` |
| `router.mysqlPort` | The port for Cube Store to listen to connections on | `3306` |
| `router.statusPort` | The port for Cube Store to expose status probes | `3331` |
| `router.persistence.enabled` | Enable persistence for local data using Persistent Volume Claims | `false` |
| `router.persistance.size` | Persistent Volume size | `10Gi` |
| `router.persistance.accessModes` | Persistent Volume access modes | [`ReadWriteOnce`] |
| `router.persistance.annotations` | Additional custom annotations for the PVC | `{}` |
| `router.affinity` | Affinity for pod assignment | `{}` |
| `router.spreadConstraints` | Topology spread constraint for pod assignment | `{}` |
| `router.spreadConstraints` | Topology spread constraint for pod assignment | `[]` |
| `router.resources` | Define resources requests and limits for single Pods | `{}` |

### Workers parameters
Expand All @@ -132,5 +131,5 @@ By default local dir are not persisted. You can enable persistance on router and
| `workers.persistance.accessModes` | Persistent Volume access modes | [`ReadWriteOnce`] |
| `workers.persistance.annotations` | Additional custom annotations for the PVC | `{}` |
| `workers.affinity` | Affinity for pod assignment | `{}` |
| `workers.spreadConstraints` | Topology spread constraint for pod assignment | `{}` |
| `workers.spreadConstraints` | Topology spread constraint for pod assignment | `[]` |
| `workers.resources` | Define resources requests and limits for single Pods | `{}` |
17 changes: 17 additions & 0 deletions examples/helm-charts/cubestore/templates/router/statefulset.yaml
Expand Up @@ -37,15 +37,24 @@ spec:
- name: mysql
containerPort: {{ .Values.router.mysqlPort }}
protocol: TCP
- name: status
containerPort: {{ .Values.router.statusPort }}
protocol: TCP
env:
{{- include "cubestore.common-env" . | nindent 12 }}
{{- $fullName := include "cubestore.fullname" . }}
{{- $headlessServiceName := printf "%s-%s" $fullName "headless" }}
{{- $workerPort := .Values.workers.port | int }}
- name: CUBESTORE_SERVER_NAME
value: {{ printf "%s-router:%d" (include "cubestore.fullname" .) (.Values.router.metaPort | int) }}
- name: CUBESTORE_PORT
value: {{ .Values.router.mysqlPort | quote }}
- name: CUBESTORE_HTTP_PORT
value: {{ .Values.router.httpPort | quote }}
- name: CUBESTORE_META_PORT
value: {{ .Values.router.metaPort | quote }}
- name: CUBESTORE_STATUS_PORT
value: {{ .Values.router.statusPort | quote }}
{{ if gt (.Values.workers.workersCount | int) 0 }}
{{- $workers := list }}
{{- range $e, $i := until ($.Values.workers.workersCount | int) }}
Expand All @@ -60,6 +69,14 @@ spec:
- name: CUBESTORE_REMOTE_DIR
value: /cube/data
{{- end}}
livenessProbe:
httpGet:
path: /readyz
port: status
readinessProbe:
httpGet:
path: /livez
port: status
{{- if .Values.router.resources }}
resources:
{{- toYaml .Values.router.resources | nindent 12 }}
Expand Down
8 changes: 6 additions & 2 deletions examples/helm-charts/cubestore/values.yaml
Expand Up @@ -127,6 +127,10 @@ router:
##
mysqlPort: 3306

## The port for Cube Store to expose status probes
##
statusPort: 3031

persistence:
## Enable persistence for local data using Persistent Volume Claims
##
Expand All @@ -153,7 +157,7 @@ router:
## Topology spread constraint for pod assignment
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
##
spreadConstraints: {}
spreadConstraints: []

## Define resources requests and limits for single Pods.
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
Expand Down Expand Up @@ -195,7 +199,7 @@ workers:
## topology spread constraint for pod assignment
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
##
spreadConstraints: {}
spreadConstraints: []

## Define resources requests and limits for single Pods.
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
Expand Down

0 comments on commit c33473c

Please sign in to comment.