-
Notifications
You must be signed in to change notification settings - Fork 3
feat(DMVP-10317): add analytics component charts #224
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
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| dependencies: | ||
| - name: base | ||
| repository: https://dasmeta.github.io/helm | ||
| version: 0.3.31 | ||
| digest: sha256:2c20b28ea353c938243258cbebb3fffda752688bbb7686c49ec0f7f990a62681 | ||
| generated: "2026-07-29T15:13:41.755884+04:00" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| apiVersion: v2 | ||
| name: metabase | ||
| description: Metabase deployment built on the DasMeta base chart | ||
| type: application | ||
| version: 0.1.0 | ||
| appVersion: "0.63.1" | ||
|
|
||
| dependencies: | ||
| - name: base | ||
| version: 0.3.31 | ||
| repository: https://dasmeta.github.io/helm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # Metabase | ||
|
|
||
| Metabase is the default visualisation provider for the data-analytics platform. This chart is a thin wrapper around the published `dasmeta/base` chart; it deploys Metabase only and does not create its application database, users, grants, DNS, ingress controller, or secrets. | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| - A PostgreSQL application database and an application user, provisioned outside this chart. | ||
| - A Kubernetes Secret containing Metabase runtime configuration. At minimum it must contain `MB_DB_TYPE=postgres` and `MB_DB_CONNECTION_URI`. | ||
| - An ingress controller and DNS record if public access is enabled. | ||
|
|
||
| ## Install | ||
|
|
||
| ```bash | ||
| helm repo add dasmeta https://dasmeta.github.io/helm | ||
| helm upgrade --install metabase dasmeta/metabase \ | ||
| --namespace analytics --create-namespace \ | ||
| --version 0.1.0 \ | ||
| -f examples/metabase/minimal.yaml | ||
| ``` | ||
|
|
||
| The example references `example-metabase-runtime`; create it through the platform secret-management flow before installing. Do not place credentials in Helm values. | ||
|
|
||
| ## Key values | ||
|
|
||
| All application values are nested under `base` because this chart depends on `dasmeta/base`. | ||
|
|
||
| | Key | Purpose | | ||
| | --- | --- | | ||
| | `base.envFrom` | References the Secret containing `MB_*` runtime settings. | | ||
| | `base.ingress` | Enables and configures external access. | | ||
| | `base.resources` | Configures Metabase resource requests and limits. | | ||
| | `base.fullnameOverride` | Provides a stable service name. | | ||
|
|
||
| ## Validate locally | ||
|
|
||
| From the repository root: | ||
|
|
||
| ```bash | ||
| helm template metabase charts/metabase -f examples/metabase/minimal.yaml | ||
| ``` |
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| base: | ||
| appVersion: 0.63.1 | ||
| replicaCount: 1 | ||
| image: | ||
| repository: metabase/metabase | ||
| tag: v0.63.1.12 | ||
| pullPolicy: Always | ||
| containerPort: 3000 | ||
| service: | ||
| type: ClusterIP | ||
| port: 3000 | ||
| serviceAccount: | ||
| create: false | ||
| ingress: | ||
| enabled: false | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| dependencies: | ||
| - name: base | ||
| repository: https://dasmeta.github.io/helm | ||
| version: 0.3.31 | ||
| digest: sha256:2c20b28ea353c938243258cbebb3fffda752688bbb7686c49ec0f7f990a62681 | ||
| generated: "2026-07-29T15:13:41.755884+04:00" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| apiVersion: v2 | ||
| name: postgrest | ||
| description: PostgREST deployment built on the DasMeta base chart | ||
| type: application | ||
| version: 0.1.0 | ||
| appVersion: "13.0.8" | ||
|
|
||
| dependencies: | ||
| - name: base | ||
| version: 0.3.31 | ||
| repository: https://dasmeta.github.io/helm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # PostgREST | ||
|
|
||
| PostgREST exposes the governed analytics schema through a REST API. This chart deploys PostgREST only; it does not provision PostgreSQL, roles, grants, schema migrations, DNS, ingress controller, or runtime secrets. | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| - A PostgreSQL analytics database with a dedicated API role and least-privilege grants. | ||
| - A Kubernetes Secret with PostgREST configuration, including `PGRST_DB_URI`, `PGRST_DB_SCHEMAS`, `PGRST_DB_ANON_ROLE`, and `PGRST_JWT_SECRET` when JWT authentication is enabled. | ||
| - An ingress controller and DNS record if the API is exposed externally. | ||
|
|
||
| ## Install | ||
|
|
||
| ```bash | ||
| helm repo add dasmeta https://dasmeta.github.io/helm | ||
| helm upgrade --install postgrest dasmeta/postgrest \ | ||
| --namespace analytics --create-namespace \ | ||
| --version 0.1.0 \ | ||
| -f examples/postgrest/minimal.yaml | ||
| ``` | ||
|
|
||
| The referenced Secret is created by the platform secret-management flow. Keep database credentials and JWT keys out of Helm values. | ||
|
|
||
| ## Key values | ||
|
|
||
| All application values are nested under `base` because this chart depends on `dasmeta/base`. | ||
|
|
||
| | Key | Purpose | | ||
| | --- | --- | | ||
| | `base.envFrom` | References the Secret containing `PGRST_*` runtime settings. | | ||
| | `base.ingress` | Enables and configures API exposure. | | ||
| | `base.resources` | Configures PostgREST resource requests and limits. | | ||
| | `base.fullnameOverride` | Provides a stable internal service name. | | ||
|
|
||
| ## Validate locally | ||
|
|
||
| From the repository root: | ||
|
|
||
| ```bash | ||
| helm template postgrest charts/postgrest -f examples/postgrest/minimal.yaml | ||
| ``` |
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| base: | ||
| appVersion: 13.0.8 | ||
| image: | ||
| repository: postgrest/postgrest | ||
| tag: v13.0.8 | ||
| pullPolicy: Always | ||
| containerPort: 3000 | ||
| service: | ||
| type: ClusterIP | ||
| port: 3000 | ||
| serviceAccount: | ||
| create: false | ||
| ingress: | ||
| enabled: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| dependencies: | ||
| - name: base | ||
| repository: https://dasmeta.github.io/helm | ||
| version: 0.3.31 | ||
| - name: base | ||
| repository: https://dasmeta.github.io/helm | ||
| version: 0.3.31 | ||
| - name: base | ||
| repository: https://dasmeta.github.io/helm | ||
| version: 0.3.31 | ||
| - name: base | ||
| repository: https://dasmeta.github.io/helm | ||
| version: 0.3.31 | ||
| - name: base | ||
| repository: https://dasmeta.github.io/helm | ||
| version: 0.3.31 | ||
| digest: sha256:e7a0e6502f1d21e6ecb8f43a2e2448e18cadbe63583e3c96efefec72961d7cd3 | ||
| generated: "2026-07-29T15:13:45.905818+04:00" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| apiVersion: v2 | ||
| name: redash | ||
| description: Redash topology built on DasMeta base chart dependencies | ||
| type: application | ||
| version: 0.1.0 | ||
| appVersion: "26.3.0" | ||
|
|
||
| dependencies: | ||
| - name: base | ||
| alias: server | ||
| version: 0.3.31 | ||
| repository: https://dasmeta.github.io/helm | ||
| - name: base | ||
| alias: scheduler | ||
| version: 0.3.31 | ||
| repository: https://dasmeta.github.io/helm | ||
| - name: base | ||
| alias: scheduledWorker | ||
| version: 0.3.31 | ||
| repository: https://dasmeta.github.io/helm | ||
| - name: base | ||
| alias: adhocWorker | ||
| version: 0.3.31 | ||
| repository: https://dasmeta.github.io/helm | ||
| - name: base | ||
| alias: defaultWorker | ||
| version: 0.3.31 | ||
| repository: https://dasmeta.github.io/helm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| # Redash | ||
|
|
||
| Redash is an optional visualisation provider for the data-analytics platform. The chart deploys the native Redash server, scheduler, and worker topology through aliases of the published `dasmeta/base` chart. It does not provision PostgreSQL, Redis, users, grants, DNS, ingress controller, or runtime secrets. | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| - A PostgreSQL application database and a Redis endpoint, provisioned outside this chart. | ||
| - A Kubernetes Secret containing `REDASH_DATABASE_URL`, `REDASH_REDIS_URL`, `REDASH_COOKIE_SECRET`, and `REDASH_SECRET_KEY`. | ||
| - An ingress controller and DNS record if public access is enabled. | ||
|
|
||
| The first deployment must run Redash's native `create_db` command. The minimal example does this as a server init container before the web server starts. The command uses the same externally managed runtime Secret as the Redash services. | ||
|
|
||
| ## Install | ||
|
|
||
| ```bash | ||
| helm repo add dasmeta https://dasmeta.github.io/helm | ||
| helm upgrade --install redash dasmeta/redash \ | ||
| --namespace analytics --create-namespace \ | ||
| --version 0.1.0 \ | ||
| -f examples/redash/minimal.yaml | ||
| ``` | ||
|
|
||
| The referenced Secret is created by the platform secret-management flow. Do not place Redash database, Redis, or cryptographic keys in Helm values. | ||
|
|
||
| ## Components and key values | ||
|
|
||
| | Component | Values key | Native command | Default queues | | ||
| | --- | --- | --- | --- | | ||
| | Web server | `server` | `server` | — | | ||
| | Scheduler | `scheduler` | `scheduler` | — | | ||
| | Scheduled worker | `scheduledWorker` | `worker` | `scheduled_queries,schemas` | | ||
| | Ad-hoc worker | `adhocWorker` | `worker` | `queries` | | ||
| | Default worker | `defaultWorker` | `worker` | `periodic,emails,default` | | ||
|
|
||
| Each component has its own `envFrom`, `resources`, `replicaCount`, and scheduling values. Only `server.ingress` exposes a Service by default. The Redash image entrypoint receives the native command through the component's `args` value. Resource names include the Helm release name, so separate releases do not collide in one namespace. | ||
|
|
||
| ## Validate locally | ||
|
|
||
| From the repository root: | ||
|
|
||
| ```bash | ||
| helm template redash charts/redash -f examples/redash/minimal.yaml | ||
| ``` |
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,85 @@ | ||
| server: | ||
| # Inherited base-chart naming: keep fullnameOverride empty so the release name | ||
| # remains in resource names; the unique nameOverride scopes this component. | ||
| nameOverride: redash-server | ||
| appVersion: 26.3.0 | ||
| image: | ||
| repository: redash/redash | ||
| tag: 26.3.0 | ||
| pullPolicy: Always | ||
| replicaCount: 1 | ||
| containerPort: 5000 | ||
| service: | ||
| type: ClusterIP | ||
| port: 5000 | ||
| serviceAccount: | ||
| create: false | ||
| ingress: | ||
| enabled: false | ||
| args: | ||
| - server | ||
|
|
||
| scheduler: | ||
| nameOverride: redash-scheduler | ||
| appVersion: 26.3.0 | ||
| image: | ||
| repository: redash/redash | ||
| tag: 26.3.0 | ||
| pullPolicy: Always | ||
| service: | ||
| enabled: false | ||
| serviceAccount: | ||
| create: false | ||
| args: | ||
| - scheduler | ||
|
|
||
| scheduledWorker: | ||
| nameOverride: redash-scheduled-worker | ||
| appVersion: 26.3.0 | ||
| image: | ||
| repository: redash/redash | ||
| tag: 26.3.0 | ||
| pullPolicy: Always | ||
| service: | ||
| enabled: false | ||
| serviceAccount: | ||
| create: false | ||
| args: | ||
| - worker | ||
| extraEnv: | ||
| QUEUES: scheduled_queries,schemas | ||
| WORKERS_COUNT: "1" | ||
|
|
||
| adhocWorker: | ||
| nameOverride: redash-adhoc-worker | ||
| appVersion: 26.3.0 | ||
| image: | ||
| repository: redash/redash | ||
| tag: 26.3.0 | ||
| pullPolicy: Always | ||
| service: | ||
| enabled: false | ||
| serviceAccount: | ||
| create: false | ||
| args: | ||
| - worker | ||
| extraEnv: | ||
| QUEUES: queries | ||
| WORKERS_COUNT: "2" | ||
|
|
||
| defaultWorker: | ||
| nameOverride: redash-default-worker | ||
| appVersion: 26.3.0 | ||
| image: | ||
| repository: redash/redash | ||
| tag: 26.3.0 | ||
| pullPolicy: Always | ||
| service: | ||
| enabled: false | ||
| serviceAccount: | ||
| create: false | ||
| args: | ||
| - worker | ||
| extraEnv: | ||
| QUEUES: periodic,emails,default | ||
| WORKERS_COUNT: "1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # Runtime credentials are supplied by the platform secret-management flow. | ||
| base: | ||
| fullnameOverride: example-metabase | ||
| envFrom: | ||
| secret: example-metabase-runtime | ||
| resources: | ||
| requests: | ||
| cpu: 250m | ||
| memory: 512Mi | ||
| limits: | ||
| memory: 1Gi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # Runtime credentials and JWT keys are supplied by the platform secret-management flow. | ||
| base: | ||
| fullnameOverride: example-postgrest | ||
| envFrom: | ||
| secret: example-postgrest-runtime | ||
| resources: | ||
| requests: | ||
| cpu: 100m | ||
| memory: 128Mi | ||
| limits: | ||
| memory: 256Mi |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The workloads are rendered in the dependency context, but none of the new wrapper value blocks supplies the base chart's
appVersion; its label helper therefore rendersapp.kubernetes.io/version: 0.3.31on Metabase, PostgREST, and every Redash Deployment instead of the version of the image being run. This produces incorrect version metadata for selectors, inventory, and monitoring, so setappVersionunder each base alias to the corresponding application image version.Useful? React with 👍 / 👎.