|Index|SUSE Telco Cloud Documentación|Configuración de las funciones Telco|Configuración de registro privado
Se aplica a SUSE Telco Cloud 3.6

45 Configuración de registro privado

Containerd se puede configurar para conectarse a registros privados y utilizarlos para extraer imágenes privadas en cada nodo.

Al iniciarse, RKE2 comprueba si existe un archivo registries.yaml en /etc/rancher/rke2/ e indica a containerd que utilice los registros definidos en el archivo. Si deseáis utilizar un registro privado, cread este archivo como root en cada nodo que vaya a utilizar el registro.

Para añadir el registro privado, cread el archivo /etc/rancher/rke2/registries.yaml con el siguiente contenido:

mirrors:
  docker.io:
    endpoint:
      - "https://registry.example.com:5000"
configs:
  "registry.example.com:5000":
    auth:
      username: xxxxxx # this is the registry username
      password: xxxxxx # this is the registry password
    tls:
      cert_file:            # path to the cert file used to authenticate to the registry
      key_file:             # path to the key file for the certificate used to authenticate to the registry
      ca_file:              # path to the ca file used to verify the registry's certificate
      insecure_skip_verify: # may be set to true to skip verifying the registry's certificate

o sin autenticación:

mirrors:
  docker.io:
    endpoint:
      - "https://registry.example.com:5000"
configs:
  "registry.example.com:5000":
    tls:
      cert_file:            # path to the cert file used to authenticate to the registry
      key_file:             # path to the key file for the certificate used to authenticate to the registry
      ca_file:              # path to the ca file used to verify the registry's certificate
      insecure_skip_verify: # may be set to true to skip verifying the registry's certificate

Para que los cambios en el registro surtan efecto, debéis configurar este archivo antes de iniciar RKE2 en el nodo o reiniciar RKE2 en cada nodo configurado.

Nota
Nota

Para obtener más información al respecto, consultad la configuración del registro containerd en rke2.