I have deployed kubernetes-core through juju on two ubuntu bionic host machines (microstack). On my controller node, there is a private docker registry with my web-application image that I want to deploy. However, I always get error
Warning Failed 12s (x2 over 26s) kubelet, juju-50ab96-default-1 Failed to pull image "registry_ip:5001/frontend:latest": rpc error: code = Unknown desc = failed to pull and unpack image "registry_ip:5001/frontend:latest": failed to resolve reference "registry_ip:5001/frontend:latest": failed to do request: Head https://registry_ip:5001/v2/frontend/manifests/latest: x509: certificate signed by unknown authority
The registry is secured by a self-signed certificate, whose certificate authority cert is deployed to the juju client node as described in https://kubernetes.io/docs/concepts/cluster-administration/certificates/. Does anyone understand this behavior and know how to remedy it ?