Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Problems setting imagePullSecrets on DOKS 1.20 and 1.21
I was trying to add a dockerconfigjson secret to pull images from my private github repo docker.pkg.github.com. I was following the docs on https://docs.digitalocean.com/products/container-registry/how-to/use-registry-docker-kubernetes/.
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?