Stanley Yang
06/16/2022, 8:17 PMpython_file
and python_module
.
What I am looking for is to replicate a user deployments where I can (container) registry and use the same container for multiple images through different tags.
Example config:
deployments:
- name: "k8s-example-user-code-1"
image:
repository: "<http://docker.io/dagster/user-code-example|docker.io/dagster/user-code-example>"
tag: latest
pullPolicy: Always
dagsterApiGrpcArgs:
- "--python-file"
- "/example_project/example_repo/repo.py"
port: 3030
- name: "k8s-my-older-user-code-1"
image:
repository: "<http://docker.io/dagster/user-code-example|docker.io/dagster/user-code-example>"
tag: olderSHA
pullPolicy: Always
dagsterApiGrpcArgs:
- "--python-file"
- "/example_project/example_repo/repo.py"
port: 3030
I feel like if I want to achieve this, I would need to stand up something like kind
or minikube
to replicate my production dagster infrastructuredaniel
06/16/2022, 8:19 PMStanley Yang
06/16/2022, 8:34 PMworkspace.yml
. Maybe there is some route through launching jobs in containers
Is there a full API documentation for the workspace YAML spec? Maybe I can finesse a more creative solutionStanley Yang
06/16/2022, 8:34 PMdaniel
06/16/2022, 8:35 PMdaniel
06/16/2022, 8:36 PMStanley Yang
06/16/2022, 8:40 PMfirst_repo_foo.py
in image:foo
2. second_repo_bar.py
in second-image:bar
3. second_repo_bar.py
in second-image:bar_other_tag
I want to run all these locally. Can I specify the grpc_server like this?
load_from:
# Each entry here corresponds to a container that exposes a gRPC server.
- grpc_server:
host: image:foo
port: 4000
location_name: "first_repo_foo.py"
- grpc_server:
host: second-image:bar
port: 4000
location_name: "second_repo_bar.py"
- grpc_server:
host: second-image:bar_other_tag
port: 4000
location_name: "second_repo_bar.py"
daniel
06/16/2022, 8:41 PMdaniel
06/16/2022, 8:41 PMStanley Yang
06/16/2022, 8:43 PM