refined-country-53341
07/21/2023, 2:33 PMMETAFLOW_KUBERNETES_SECRETS=docker-secret METAFLOW_DEFAULT_CONTAINER_REGISTRY=<http://registry.domain.com|registry.domain.com> python flow.py --with kubernetes:image=<image:tag> --datastore=s3 run
docker-secret created with command: kubectl create secret docker-registry docker-secret --docker-username=USERNAME --docker-password=PASSWORD --docker-server=<http://registry.domain.com|registry.domain.com>
And the output from `kubectl describe pod ...`:
Failed to pull image "<http://registry.domain.com/image:tag|registry.domain.com/image:tag>": rpc error: code = Unknown desc = failed to pull and unpack image "<http://registry.domain.com/image:tag|registry.domain.com/image:tag>": failed to resolve reference "<http://registry.domain.com/image:tag|registry.domain.com/image:tag>": failed to authorize: failed to fetch anonymous token: unexpected status: 403 Forbidden
Any ideas how to fix this?
Thanks in advancesquare-wire-39606
07/21/2023, 3:50 PMimage pull secrets to your kubernetes service account so that the pod has the right creds to pull from docker registry. here is a link for the instructions - https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-accountrefined-country-53341
07/21/2023, 4:59 PMsquare-wire-39606
07/21/2023, 5:41 PM