Hi, may I ask a question here?
Is there a way to get private docker image from Docker registry to register task?
I wonder how to login docker registry in flyte to download private image.
y
Yee
05/13/2022, 2:39 AM
this isn’t documented well sadly… or at all 😞
Yee
05/13/2022, 2:39 AM
cc @Marc Paquette
👀 1
Yee
05/13/2022, 2:39 AM
but basically the way these work on k8s is via imagepull secrets right?
so these are created outside of flyte iirc (i’ll confirm this later). once they are created the way they are used by flyte is through the service account. so when you launch your flyte tasks and workflows, you always specify a service account (and possibly also an iam role but that’s irrelevant).
Yee
05/13/2022, 2:42 AM
if you don’t specify one, then if a pod or any other K8s resources is run on the cluster, then you get the
default
service account
Yee
05/13/2022, 2:43 AM
k8s service accounts can be tagged with an imagepullsecret
Yee
05/13/2022, 2:44 AM
you can do this yourself…
Yee
05/13/2022, 2:44 AM
or you can rely on the Flyte admin cluster cron job. this is a deployment that will go through and update settings on your linked k8s clusters.
Yee
05/13/2022, 2:45 AM
that process, reads in a series of templates, that can look like this.
Yee
05/13/2022, 2:47 AM
and when we say series of templates - this here has some more examples.
Yee
05/13/2022, 2:50 AM
the command that is run that applies all these yaml templates to the known clusters is here.
y
yujinlee
05/13/2022, 2:57 AM
@Yee Thank you for your kind reply..! I will try the solutions you suggested.