hundreds-intern-44546
11/02/2022, 11:40 AM[1/1] currentAttempt done. Last Error: USER::containers with unready status: [apv828cglh4qs76ftwgf-n0-0]|Back-off pulling image "<http://x.y.z.dkr.ecr.us-west-2.amazonaws.com/flyte_test:adiwala1|x.y.z.dkr.ecr.us-west-2.amazonaws.com/flyte_test:adiwala1>"
To make sure that imagePullSecret are present in service account I ran the following commands
kubectl get pod nginx -o=jsonpath='{.spec.imagePullSecrets[0].name}{"\n"}'
The output was
reg-ecr-cred
Can you please help me out here what am I missing?hundreds-intern-44546
11/02/2022, 1:11 PMkubectl create secret docker-registry ecr-cred-ns-flyte-development \
--docker-server=<http://x.y.z.dkr.ecr.us-west-2.amazonaws.com|x.y.z.dkr.ecr.us-west-2.amazonaws.com> \
--docker-username=AWS \
--docker-password=$(aws ecr get-login-password) \
--namespace=flytesnacks-development
kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "ecr-cred-ns-flyte-development"}]}'
hundreds-intern-44546
11/02/2022, 1:28 PMkubectl get pod a65wjs9dpnbjszvghs8q-n0-0 -n flytesnacks-development -o=jsonpath='{.spec.imagePullSecrets}{"\n"}'
also output is blank.. which means sa default is not attaching the imagepullsecret to newly created pods..
so what will be approach on this..glamorous-carpet-83516
11/07/2022, 11:03 PMkubectl create secret docker-registry ecr-cred-ns-flyte-development \
--docker-server=<http://x.y.z.dkr.ecr.us-west-2.amazonaws.com|x.y.z.dkr.ecr.us-west-2.amazonaws.com> \
--docker-username=AWS \
--docker-password=$(aws ecr get-login-password) \
--namespace=flytesnacks-development
kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "ecr-cred-ns-flyte-development"}]}'
you have to add -n {namespace}
to the kubectl patch …glamorous-carpet-83516
11/07/2022, 11:05 PM