Add additional Docker container registries with Talos Linux

Uncover the steps to expand your Talos Kubernetes cluster by adding more container registries.

This is required when you want to pull images from a private registry, in this example from the GitLab container registry.

Tip
You can do this before installing Talos, or if you have already installed it, do it with talosctl edit machineconfig.

This configuration has to be done on every node. Here is the configuration (click to expand):

1
2
3
4
5
6
7
8
9
machine:
    registries:
        # Specifies TLS & auth configuration for HTTPS image registries.
        config:
            registry.gitlab.com:
                # The auth configuration for this registry.
                auth:
                    username: example # Optional registry authentication.
                    password: secretpassword # Optional registry authentication.