Hi community!
I'm trying to run a dummy python job on a 🧱 job cluster (_new_cluster_) using
pyflyte
like this:
pyflyte run -i <corporate_docker_registry>/<prefix>/flyte-dbx-demo:0.0.1 --remote --destination-dir . dbx_example_job_cluster.py my_databricks_job
Job successfully submitted to Databricks, but the cluster creation failed because the IMAGE could not be pulled from our corporate docker registry (due to missing credentials).
Analyzed the audit logs and found that the docker image config looks like this (_basic_auth_ block is missing):
"docker_image": {
"url": "<corporate_docker_registry>/<prefix>/flyte-dbx-demo:0.0.1",
}
I'm assuming that if we add
imagePullSecrets
to our service account as described
here, Flyte will pass the Docker credentials to Databricks in job definition like this:
"docker_image": {
"url": "<corporate_docker_registry>/<prefix>/flyte-dbx-demo:0.0.1",
"basic_auth": {
"username": <user>,
"password": <token>
}
}
Can you please confirm? (Please note that I'm only experiencing this issue when trying to run a job on a _new_cluster,_ I was able to successfully complete a job on an _existing__cluster.)
cc
@billowy-winter-86593 @glamorous-carpet-83516