Hi there! Can I please ask if there's a way to spe...
# ask-community
p
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
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
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
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
Thanks Daniel, I'll give it a try.
That did it. Many thanks Daniel!