How do I access a private Docker registry with a self signed certificate using Kubernetes?

后端 未结 4 1963
梦谈多话
梦谈多话 2021-01-18 22:17

Currently, running a private Docker registry (Artifactory) on an internal network that uses a self signed certificate for authentication.

When Kubernetes starts up a

4条回答
  •  野的像风
    2021-01-18 22:42

    You basically have to tell the Docker daemon to trust your self-signed certificate by telling it to trust the Certificate Authority (CA) that you used to sign the certificate. You can find more information here on the section that says "Use self-signed certificates".

    In particular for example for Linux:

    Linux: Copy the domain.crt file to /etc/docker/certs.d/myregistrydomain.com:5000/ca.crt on every Docker host. You do not need to restart Docker.

    This all different from authenticating by specifying ImagePullSecrets on your pods or docker login credentials in your docker config files.

提交回复
热议问题