Hi,
I did setup FluxCD.io in Kubernetes. It is to automate deployments. It reads the tags from a registry to look if there are new images, if there are, it will deploy them. I use the dockerconfig json to get the images. Flux tells me it using the same credentials to get the list of tags. But it get a unauthenticated error. I try to get the list of tags myself from the same link Flux uses, but I dont know how to authenticate.
How can I authenticate on this url: https://registry.digitalocean.com/v2/registry.digitalocean.com/{reponame}/{imagename}/tags/list
Thanks in advance!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi I can not test it right now, I did setup it with Terraform, but cause a lot of work this week I disabled it. But I think I found the problem. It tries to get de tags list of: https://registry.digitalocean.com/v2/registry.digitalocean.com/{reponame}/{imagename}/tags/list
It got a 401. If I try to get the list manually with the same ImagePullSecrets it is also unauthenticated. But when I use the url:
https://registry.digitalocean.com/v2/{reponame}/{imagename}/tags/list
I can authenticate, I do not know the reason exactly anymore why I was using the registry URL in the Flux manifest before the repo name. So this weekend I will apply the cluster with Terraform and try it without the registry as prefix.
Also good to know (I didnt know) the ‘WWW-Authenticate’ header will give more info about auth errors.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.