Question

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?

Subscribe
Share

Running into this as well. If I deploy my stack to k8s on docker-desktop it spins right up with my given image pull secret connecting to AWS ECR.I switch the k8s context to DO and getting that 401.


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!