Build pipelines with Kubernetes
note
This article focuses on using an out-of-the-box Kubernetes resource. For further customization, use the open_pipes_session
approach instead.
This article covers how to use Dagster Pipes with Dagster's Kubernetes integration to launch Kubernetes pods and execute external code.
Pipes allows your code to interact with Dagster outside of a full Dagster environment. Instead, the environment only needs to contain dagster-pipes
, a single-file Python package with no dependencies that can be installed from PyPI or easily vendored. dagster-pipes
handles streaming stdout
/stderr
and Dagster events back to the orchestration process.
Prerequisites
- In the Dagster environment, you'll need to install the following packages:
pip install dagster dagster-webserver dagster-k8s
Refer to the Dagster installation guide for more info.
- A Kubernetes cluster. This can be an existing cluster, or, if you're working locally, you can use kind or Docker Desktop.