Dear Flyte users, I have a question to pull privat...
# announcements
g
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.
f
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
g
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
f
refer to the thread
šŸ‘ 1
cc @echoing-queen-96254 / @billowy-sundown-31926 can we please document this?
šŸ‘€ 1
āœ… 1
g
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, @freezing-airport-6809
163 Views