Skip to content

Deployment

The project runs through the central platform pipeline (mjust90/platform, target: kubernetes), like every other app. The only difference: it gets its own clusters instead of the shared production cluster (environments: in deploy.yml).

flowchart LR
  push[Push to main] --> img[Build + scan images<br/>superset/, docs/]
  push --> render[kustomize build<br/>deploy/platform + Helm charts]
  img --> render
  render --> state[(platform-deployments)]
  state --> argo[Argo CD] --> cluster[Cluster lakehouse-staging]
  push -. first deploy .-> create[Create cluster<br/>cpx42, hel1]
  create --> argo

Environments

staging production
Cluster lakehouse-staging (cpx42, hel1) lakehouse (cpx42, hel1)
Trigger Push to main (change under lakehouse-k3s/) Run workflow → production (takes over the staging state)
Lifetime short-lived: removed after production, by remove, or automatically 2 days after the last deploy permanent, delete protection and nightly volume backup
Password protection of the platform off (own logins) off

Production is reserved but not created; a production run would create the cluster (about €70/month).

How the manifests are built

deploy.yml sets k8s: deploy/platform, so the pipeline builds that folder with Kustomize (including the Lakekeeper and Trino Helm charts), replaces the ${PLATFORM_…} placeholders and writes the result to platform-deployments/apps/<cluster>/<env>/lakehouse/. Argo CD on the cluster applies it.

Order inside one sync (Argo CD waves and hooks):

Wave What
-3 random values (lakehouse-generated), account for the secrets job
-2 job platform-secrets: derives all Secrets
0 Postgres, object store, Keycloak, OpenFGA, Lakekeeper, Trino, Superset, docs, Ingress
PostSync Lakekeeper bootstrap (warehouse, roles, grants), Keycloak settings

The same files from deploy/base, deploy/values and deploy/extra are used by the local setup (make up).