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!

1 comment
  • Hi there,

    Can you provide the error your request is receiving, is it a 401? Are you sure that the proper API token is being provided in that request from fluxcd?

    Regards,

    John Kwiatkoski

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

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.

Submit an Answer