Add support for using a host registry dir in cri

This will be used instead of the cri registry config in the main config
toml.

---

Also pulls in changes from containerd/cri@d0b4eecbb3

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
Brian Goff
2021-01-29 01:31:55 +00:00
parent 1fd99e24a2
commit b0b6d9aa03
4 changed files with 115 additions and 5 deletions

View File

@@ -237,6 +237,11 @@ version = 2
# 'plugins."io.containerd.grpc.v1.cri".registry' contains config related to the registry
[plugins."io.containerd.grpc.v1.cri".registry]
# Specifies a directory to look for registry configs in.
# Dir can be used just like /etc/docker/certs.d OR can contain a hosts.toml with more specific configurations.
#
# NOTE: Specifying this will cause the cri plugin to ignore any other registry configs specified in this configuration file.
config_path = "/etc/containerd/certs.d"
# 'plugins."io.containerd.grpc.v1.cri.registry.headers sets the http request headers to send for all registry requests
[plugins."io.containerd.grpc.v1.cri".registry.headers]