Install and configure a local deployment
The options around a local OpenLakeForge deployment: how to install olf,
create a project, choose a preset, reach the services over HTTP or HTTPS, and
tear everything down. For the shortest path, follow the
Quickstart instead.
The local platform runs in a kind cluster on your
Docker engine. It does not touch your own ~/.kube/config, and it is local
evaluation infrastructure: do not expose it beyond your workstation.
Requirements
Section titled “Requirements”| You need | Check |
|---|---|
| A running Docker engine | docker ps succeeds |
| Python 3.12 or newer, or uv | python3.12 --version or uv --version |
Ports 80 and 443 free on 127.0.0.1 |
Nothing else serves http://localhost |
Terraform, Helm, kubectl and kind are not prerequisites: olf downloads the
versions pinned in the release and keeps them under ~/.openlakeforge.
Hardware
Section titled “Hardware”The resources Docker can use, not the whole machine:
| Deployment | CPU | Memory | Free disk |
|---|---|---|---|
| Slim, one stage (the Quickstart) | 4 | 16 GB | not yet measured; less than Full |
| Full, DEV and PROD | 4 | 16 GB | 100 GB |
These are the tested sizes; smaller machines are untested. The CI Slim smoke test and the nightly Full DEV+PROD deployment both pass on a GitHub-hosted runner with 4 vCPUs and 16 GB of memory. With Full and two stages running, the host used about 9 GB of memory and Docker held about 100 GB: about 15 GB of images and about 84 GB in the three kind nodes’ volumes, which keep a copy of every image. On Docker Desktop, raise its memory and disk limits to these values.
Install olf
Section titled “Install olf”With uv, which fetches Python 3.12 if your machine has none:
uv tool install "openlakeforge==0.5.0a1" --python 3.12Or with pip, in a virtual environment:
python3.12 -m venv ~/.venvs/olfsource ~/.venvs/olf/bin/activatepython3.12 -m pip install "openlakeforge==0.5.0a1"With pip, activate the environment again in each new shell. Check the install
with olf version.
Toolchain mode
Section titled “Toolchain mode”OLF_TOOLCHAIN_MODE decides where olf finds Terraform, Helm, kubectl and
kind. Docker is always yours.
| Mode | Behaviour |
|---|---|
managed (default) |
Downloads and verifies the pinned versions under ~/.openlakeforge. Never changes your PATH. |
host |
Uses the tools on your PATH, for a machine that cannot download them. |
OLF_HOME moves the toolchain, the platform payload and olf’s state away
from ~/.openlakeforge. olf toolchain list shows what is installed and
olf toolchain install downloads everything in advance.
Create a project
Section titled “Create a project”Run olf init in an empty directory:
mkdir my-lakehouse && cd my-lakehouseolf initIt writes openlakeforge.yaml, the Deployment Profile, and lakehouse_code/
with three demo data products. The profile enables one DEV stage on the Slim
preset, with plain HTTP and no sign-in. olf init refuses to overwrite either.
| Option | Effect |
|---|---|
--stages dev,prod |
Enable other stages: dev, dev,prod or dev,uat,prod. |
--preset full |
Add Superset and OpenMetadata to the Slim data path. |
--name <name> |
Name the profile something other than the directory. |
--profile-only |
Write only openlakeforge.yaml, into an existing project. |
--empty |
Skip the demo products. |
An --empty project cannot deploy until it holds a source and a product.
Scaffold them first:
olf source new crm --resource accountsolf product new sales/accounts_report --input crm/accounts --gold-table mart_accountsDeploy
Section titled “Deploy”olf deploy --provider localThe first deploy takes several minutes while images download. olf deploy
runs four phases in order; --phase runs one of them:
| Phase | What it does | Rerun it when |
|---|---|---|
foundation |
Creates the kind cluster openlakeforge-local (one control plane, two workers) |
The cluster was deleted |
prefetch |
Pulls the large runtime images into the kind nodes | An image pull failed or timed out |
platform |
Deploys the shared services and one namespace per stage with Terraform and Helm | You changed the preset or the stages |
artifacts |
Builds the project-code image from lakehouse_code/ and deploys your data products |
You changed code under lakehouse_code/ |
Every phase reconciles what already exists, so running it again is safe.
Choose Slim or Full
Section titled “Choose Slim or Full”| Preset | Includes |
|---|---|
slim (default) |
dlt, Floe, Iceberg, Polaris, Trino, dbt and Dagster: the whole ingestion-to-Gold path |
full |
Slim plus OpenMetadata (governance, lineage) and Superset (dashboards) |
Set preset: full under spec in openlakeforge.yaml and run
olf deploy --provider local again. The change applies in place: nothing
already deployed is removed. Setting preset: slim removes the two services
the same way.
Local defaults
Section titled “Local defaults”| Setting | Default | Change it with |
|---|---|---|
| Cluster | openlakeforge-local |
--cluster-name |
| Kube context | kind-openlakeforge-local |
follows the cluster name |
| Kubeconfig | ~/.openlakeforge/state/local/kubeconfig.yaml |
--kubeconfig-path |
| Shared services | namespace olf-system |
|
| Stage services | namespace olf-<stage>, one per enabled stage |
spec.stages in the profile |
Stage selected by olf commands |
dev |
--stage |
In a source checkout of the repository, the kubeconfig is
.tmp/kubeconfigs/local.yaml instead.
Access the services
Section titled “Access the services”olf status --provider localThe URLs section lists every service. With the default profile:
| Service | URL |
|---|---|
| Portal, linking every service | http://olf.localhost |
| Dagster, per stage | http://dagster-dev.olf.localhost |
| Trino | http://trino.olf.localhost |
| Superset, per stage (Full) | http://superset-dev.olf.localhost |
| OpenMetadata (Full) | http://openmetadata.olf.localhost |
Browsers resolve every *.localhost name to your machine. Command-line tools
often do not; olf pins them itself, and for curl pass --resolve:
curl --resolve dagster-dev.olf.localhost:80:127.0.0.1 http://dagster-dev.olf.localhost/server_infoWith sign-in off, Superset opens as its local Admin and OpenMetadata accepts
admin@open-metadata.org / admin. Over plain HTTP, the Trino Web UI shows a
fixed user, olf-web, instead of a login form; per-person identity in the UI
needs HTTPS (#425). To require sign-in, see
Connect GitHub.
Serve HTTPS
Section titled “Serve HTTPS”olf init writes spec.access.issuer: none, which serves plain HTTP. To serve
HTTPS from a local certificate authority (CA), remove the issuer line so it
takes its default, local-ca, and deploy again:
spec: access: {}olf deploy creates the CA once, in the cluster. Your browser rejects the
routes until it trusts that CA. Export it and print the trust commands for
your system:
olf access trustIt writes openlakeforge-local-ca.crt and prints the commands for Linux,
macOS or WSL2; each needs your own privileges, so olf prints rather than runs
them. Firefox keeps its own store: Settings, Privacy & Security, View
Certificates, Authorities, Import. On WSL2 the CA must go into the Windows
store, because the browser runs on Windows.
Reach Polaris and SeaweedFS
Section titled “Reach Polaris and SeaweedFS”Polaris and SeaweedFS have no route. olf forward port-forwards every service
to fixed ports on localhost until you press Ctrl-C:
olf forward --provider local| Port | Service |
|---|---|
| 3000 | Dagster |
| 8080 | Trino |
| 8088 | Superset (Full) |
| 8181 | Polaris API |
| 8585 | OpenMetadata (Full) |
| 8888 | SeaweedFS Filer UI |
| 9000 | SeaweedFS S3 API |
| 9333 | SeaweedFS Master UI |
OLF_PORT_FORWARD=1 makes olf’s own commands, such as olf e2e run,
port-forward instead of using the ingress, for example while you debug it.
Tear down
Section titled “Tear down”olf destroy --provider localIt destroys the platform services, then the kind cluster. The cluster holds
all state, so this deletes your Bronze, Silver and Gold data and Dagster’s run
history. openlakeforge.yaml and lakehouse_code/ are not touched, and the
next olf deploy rebuilds the same platform from them. With HTTPS, a rebuilt
cluster has a new CA: run olf access trust again.
| To remove | Run |
|---|---|
| Only the platform, keeping the cluster | olf destroy --provider local --phase platform |
| Only the cluster, after the platform | olf destroy --provider local --phase foundation |
The managed toolchain under ~/.openlakeforge |
olf toolchain clean --all |
--phase foundation refuses to run while platform namespaces exist; --force
overrides that and loses them. After --phase platform, bring the platform
back with olf deploy --provider local --phase platform, then
--phase artifacts.
Contributor checkout
Section titled “Contributor checkout”To work on OpenLakeForge itself, clone the repository and run the same commands through uv from its root:
git clone https://github.com/OpenLakeForge/openlakeforge.gitcd openlakeforgeuv run --project tools/olf --locked olf deploy --provider localThe contributor workflow and its gates are in AGENTS.md.
Check it worked
Section titled “Check it worked”olf e2e run --env local --suite fullIt launches every product’s job and checks the Silver and Gold tables through
Trino; on Full it also checks Superset and OpenMetadata. It ends with
Local OpenLakeForge full e2e validation passed.
Synced from openlakeforge @ v0.5.0-alpha.1 (1598142), docs/guides/local-installation.md.