https://dagster.io/ logo
#ask-community
Title
# ask-community
p

Polys

06/30/2021, 7:36 AM
Hi there! Can I please ask if there's a way to specify
imagePullSecrets
for the
k8sRunLauncher
? We are in a situation where: • everything works ok when a
dagster-run-...
pod happens to get scheduled on the same node as
dagster-user-deployment-...
because the image is cached, but • fails to pull the image on nodes that don't have it already because it's missing pull secrets. Many thanks in advance :)
❤️ 1
d

daniel

06/30/2021, 2:14 PM
hi, there's an
image_pull_secrets
key that you can set in your dagster.yaml, for example:
Copy code
run_launcher:
     module: dagster_k8s.launcher
     class: K8sRunLauncher
     config:
       image_pull_secrets:
         - name: your_secret_here
         - name: your_other_secret_here
p

Polys

06/30/2021, 2:48 PM
Hi Daniel! Thanks for the response. We are using Helm for our deployment and have this in our `values.yaml`:
Copy code
runLauncher:
  config:
    k8sRunLauncher:
      envSecrets:
        - name: ...
      envConfigMaps:
        - name: ...
Your example doesn't really match that... I've tried this but doesn't seem to do anything:
Copy code
runLauncher:
  config:
    k8sRunLauncher:
      envSecrets:
        - name: ...
      envConfigMaps:
        - name: ...
      imagePullSecrets:
        - name: ...
d

daniel

06/30/2021, 2:54 PM
oh, sorry, my mistake. In the helm chart / your values.yaml, this would be
imagePullSecrets:
- name: your_secret_here
(separate from the runLauncher key - that will then result in your dagster.yaml being set up in the format of my original answer. Forgot you would be using the Helm chart)
p

Polys

06/30/2021, 5:13 PM
Thanks Daniel, I'll give it a try.
That did it. Many thanks Daniel!
12 Views