Guillaume G
09/27/2022, 7:25 AMKubernetesJob
? I want to pull a image from a private registry.
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 youRob Freedy
09/27/2022, 2:34 PMKubernetesJob()
and specify imagePullSecrets
in that job template.
https://discourse.prefect.io/t/creating-and-deploying-a-custom-kubernetes-infrastructure-block/1531#h-2-customize-the-template-5
https://stackoverflow.com/questions/40782458/how-to-define-kubernetes-job-using-a-private-docker-registry
https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/#registry-secret-existing-credentials