Problems setting imagePullSecrets on DOKS 1.20 and 1.21

Posted September 15, 2021 73 views
DigitalOcean Managed Kubernetes

I was trying to add a dockerconfigjson secret to pull images from my private github repo I was following the docs on
I created the secret and updated my deployment to read from it on the imagePullSecrets block.
Everything seems to work fine on my DOKS 1.19. I can successfully pull my private images. However, on 1.20 and 1.21, the same manifests/configuration throws me a “401 Unauthorized” error. I tried to delete and recreate both of them. I checked the namespace, used the same version of kubectl as the cluster, but couldn’t make it work.
Does someone facing the same problem with DOKS 1.20 and 1.21?

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!