Dear Flyte users, I have a question to pull privat...
# announcements
s
Dear Flyte users, I have a question to pull private docker images. According to this link, we can specify V1Container per task. This is the point I want to ask how I can pull a private image from dockerhub. I have setup token & name on "Secret" namespace, but flyte console UI does not recognize it.
k
hmm you will have to add it to a new serviceaccount and use that service account to launch. An alternate is to add it to the default serviceaccount
another option is to https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
Copy code
apiVersion: v1

kind: Pod

metadata:

  name: private-reg

spec:

  containers:

  - name: private-reg-container

    image: <your-private-image>

  imagePullSecrets:

  - name: regcred
to do this you can use custom pod template
that will be automatically added to every
pod
created by Flyte
s
Does Flyte recognize the secret credential setup when I do
imagePullSecret
?
ah, right, I tried the another option you suggest. I will share the result after solved it
k
refer to the thread
šŸ‘ 1
cc @Marc Paquette / @Smriti Satyan can we please document this?
šŸ‘€ 1
āœ… 1
s
I have solved this issue by using K8s Client with your solution. ā€¢ 1. I create secret to apply to the dockerhub credential. ā€¢ 2. define
image_pull_secret
on
V1PodSpec
This is all I've got. Thank you for share docs, @Ketan (kumare3)
160 Views