The problem has been solved after trying to answer the following questions:
- Could it be URL address resolving the issue?
I don’t think so, because as mentioned in point 3 of the troubleshooting section. I have removed the custom part of the registry path and now it works properly. Using the same naming convention of GitLab documentation:
- Failure:
registry.example.com/mynamespace/myproject/image:latest
- Works:
registry.example.com/mynamespace/myproject:some-tag
- Could it be an authentication problem?
I can manually download the docker image from the cluster.
- Could the failed deployment manifest be copied and applied to another namespace to check that is not a problem with cluster configuration?
As I am in the troubleshooting phase the way to test is via ArgoCD from the VM where I have the GitOps Controller:
argocd app create staging --repo https://gitlab.xxx/xxx.git --path charts/db --dest-server https://X.X.X.X:16443 --dest-namespace <name> --sync-policy automatic --auto-prune --self-heal
After creating a new namespace in the same cluster the authentication works properly.