An example dagster deployment in Azure using kubernetes. The project is a simple example of how to deploy a dagster pipeline to a kubernetes cluster in Azure. The kubernetes cluster is deployed in a CI/CD pipeline to Azure using a Helm chart.
To set up and run the project locally, follow these steps:
- Clone the repository
git clone https://github.com/robertmcleod2/dagster-deployment.git
cd dagster-deployment
- create a virtual environment with python version 3.12. For Conda:
conda create -n dagster-deployment python=3.12
conda activate dagster-deployment
-
Set up your local environment variables. Create a
.env
file in the root directory of the project, following the template in the .env_template file -
Install the required packages.
ADO_TOKEN
can be found in the.env
file
pip install uv
set UV_INDEX_ADO_PASSWORD=<ADO_TOKEN>
uv pip install -e ".[dev]"
- start the Dagster webserver:
dagster dev
The dagster webserver will be available at http://localhost:3000
- Add a DNS name to the Kubernetes cluster
- Add an example forecasting model to the dagster pipeline