https://dagster.io/ logo
#deployment-kubernetes
Title
# deployment-kubernetes
t

Ted Conbeer

07/01/2021, 7:52 PM
How are people running tests with k8s? Do you run your local dev instance in k8s, or have a simpler environment where you can run unit tests? In a k8s cluster, which pod can run
execute_pipeline
, etc.? Or is there another way to launch a run for an integration test?
m

mrdavidlaing

07/02/2021, 9:43 AM
I wouldn’t write tests for how Dagster runs in K8s (that seems like a responsibility for the Dagster core team) What logic are you looking to test in K8s?
r

rex

07/02/2021, 3:53 PM
Usually, you can do simple assertions on pipelines using pytest assertions in some in process environment. This can be done locally. If you’re looking to test the end-to-end capabilities of Dagster in a K8s environment, you could have some test setup to stand up a
kind
server (https://kind.sigs.k8s.io/) where you could install the Dagit infrastructure with your pipeline code. Then, to test out and run pipelines, you could invoke GraphQL commands on the Dagit pod, and do assertions on behaviors against the GraphQL endpoints provided.
t

Ted Conbeer

07/12/2021, 9:43 PM
thanks to you both