Kubernetes Google Cloud can't pull image from registry.gitlab.com - certificate signed by unknown authority
Today (30.04.2019.) I started having issues with my CI/CD and Kubernetes. My kubernetes cluster is located on Google cloud Kubernetes version
1.10.2-gke.4 and I'm using the gitlab registry for storing the images from my app.
Almost a year ago this cluster was created and worked without an issue, there is a image pull secret which is created by the following way
kubectl create secret docker-registry kuberegh --docker-server=registry.gitlab.com --docker-username=<username> --docker-password=<password> --docker-email=<email
In my pods I'm using the image pull secret from this secret.
The gitlab runner successfully works, and pushes to the registry, and patches the deployment (changes the image id on each change in gitlab) so no errors there.
in the events tab of the pods that are failing I get
Failed to pull image "registry.gitlab.com/<group>/<project>:<image>": rpc error: code = Unknown desc = Error response from daemon: Get https://registry.gitlab.com/v1/_ping: x509: certificate signed by unknown authority
As I said this was working fine yesterday, everything was being updated, today it just started giving this error, nothing has changed on the cluster.
I also have another cluster which uses a different project on gitlab but the secret created in the same way, and everything works fine, it doesn't complain about cert. That cluster is on version
If anyone has any ideas it would mean a lot, cause I googled everything for the last 3 hours and no luck, Tried using registry.gitlab.com/v2 in the secret and in image name, still getting this /v1 error