Thread
#announcements
    s

    SeungTaeKim

    3 months ago
    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.
    Ketan (kumare3)

    Ketan (kumare3)

    3 months ago
    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 tohttps://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
    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

    SeungTaeKim

    3 months ago
    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
    Ketan (kumare3)

    Ketan (kumare3)

    3 months ago
    refer to the thread
    cc @Marc Paquette / @Smriti Satyan can we please document this?
    s

    SeungTaeKim

    3 months ago
    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)