Archie Kennedy
08/29/2022, 10:26 AMlocation_name: my_pipeline
image: ************.<http://dkr.ecr.us-east-1.amazonaws.com/my_pipeline:latest|dkr.ecr.us-east-1.amazonaws.com/my_pipeline:latest>
code_source:
package_name: my_pipeline
container_context:
k8s:
env_secrets:
- secretRef:
name: database-jwt
key: token
Archie Kennedy
08/29/2022, 11:28 AMlocation_name: my_pipeline
image: ***************.<http://dkr.ecr.us-east-1.amazonaws.com/my_pipeline:latest|dkr.ecr.us-east-1.amazonaws.com/my_pipeline:latest>
code_source:
package_name: my_pipeline
container_context:
k8s:
env_secrets:
- database-jwt
Which adds each key (e.g.: token
) as an environment variable inside the runner pod.
I think the documentation should be updated with a simple example. It currently links to a broken anchor tag in kubernetes docs that doesn't really help.
See: https://docs.dagster.io/_apidocs/libraries/dagster-k8s#apis
And another that mentions k8s Secrets in passing: https://docs.dagster.io/dagster-cloud/developing-testing/code-locations#adding-code-locationsjamie
08/29/2022, 4:16 PMjamie
08/29/2022, 4:17 PMDagster Bot
08/29/2022, 4:17 PM