The image registry hosting platform component images may not provide HTTPS service or may not have a valid TLS certificate issued by a public certificate authority. If you trust this registry, configure your container runtime by following the steps below.
Configuration steps vary by container runtime. This document covers Docker and Containerd.
Steps
Run the following on every node in the import cluster:
Back up the Docker configuration file.
Edit /etc/docker/daemon.json.
Ensure the insecure-registries parameter exists and add the image registry address obtained earlier.
For multiple registries, for example:
(Optional) Validate Docker config syntax with jq.
Ensure jq is installed. For example: yum install jq -y.
Restart Docker on all nodes.
Notes:
Run the following on every node in the import cluster:
Back up the configuration file
Get the Containerd runtime version
Run the following on every node in the import cluster:
Edit /etc/containerd/config.toml
Restart Containerd.
Run the following on every node in the import cluster:
Check whether config_path exists in the config.
Create the hosts.toml file.
If the previous command printed Follow the steps in "Containerd v1.4 v1.5 configuration for insecure registries"., see Containerd v1.4 v1.5 configuration for insecure registries.
Restart Containerd.