My function’s pods would not start! They were failing when trying to pull the image from my private repository in Docker Hub.
I had followed this article to create a docker-registry secret in my kubernetes cluster…but when I “kubectl describe”d my pod, I saw I was still getting an authorize error.
I fixed two things, am much better off, and wanted to make sure other folks don’t have similar trouble. The fix was:
- Add the docker-registry secret to my openfaas-fn namespace
- Reference the secret by name in my function’s YAML