https://prefect.io logo
g

Guillaume G

09/27/2022, 7:25 AM
Hi Prefect, Is there a way to configure a docker registry with credentials in a
KubernetesJob
? I want to pull a image from a private registry.
Copy code
reception_deployment : Deployment = Deployment.build_from_flow(
    name="private-flow",
    flow=main_flow,
    output="deployment-private-flow.yaml",
    description="private-flow",
    version="snapshot",
    work_queue_name="kubernetes",
    infrastructure=KubernetesJob(), 
    infra_overrides=dict(
        image="myprivate-image:latest",
        env={},
        finished_job_ttl=300)
    )
I can not pull
"myprivate-image:latest"
Do I have to use
service_account
? ๐Ÿคจ Thank you
โœ… 1
r

Rob Freedy

09/27/2022, 2:34 PM
๐Ÿ‘ 1
๐Ÿ˜ 1
3 Views