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

后端 未结 4 1997
梦谈多话
梦谈多话 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:39

    You can access the keys for private docker registries in $HOME/.dockercfg or $HOME/.docker/config.json . If you add it to one of these search paths kubelet should use it as a credential when pulling the images.

    • {--root-dir:-/var/lib/kubelet}/config.json
    • {cwd of kubelet}/config.json
    • ${HOME}/.docker/config.json
    • /.docker/config.json
    • {--root-dir:-/var/lib/kubelet}/.dockercfg
    • {cwd of kubelet}/.dockercfg
    • ${HOME}/.dockercfg
    • /.dockercfg

    https://kubernetes.io/docs/concepts/containers/images/#using-a-private-registry

    The "Configuring Nodes to Authenticate to a Private Registry" section gives you a step by step on how to do it.

提交回复
热议问题