We try to pull an image from a private registry and deploy it in Kubernetes master-node (or in any worker nodes). Here, we get the ‘unknown certificate authority’ error message.
For your information, we have generated a self-signed certificate for the private docker registry and copied it in the kubernetes hosts in ‘/etc/docker/certs.d/private_regsitry_domain:port/ca.crt’.
Additionally, the daemon.json is configured to accept “private_registry_domain” as an insecure registry.
We are able to push and pull to the private registry through Docker, while k8s pods fail to do so.
How to make the kubernetes nodes to accept the self-signed certificate to work with private registry?