How to add a private docker registry to k8s
If you are getting problem with ImagePullBackOff and the detailed error:
Failed to pull image “{MYREPO/myservice}”: Error response from daemon: {“message”:”Get https://{SERVER}:{PORT}/v1/_ping: x509: certificate signed by unknown authority”}
There are a couple of things you can do. The easy way:
Or add the certifcate to the trusted list. This example is for ubuntu.
Add the secret
On the hosts get the self signed cert (if needed):
Add the cert to the list.
Update the ca-certificates.
List catalog:
Check the cert is trusted: