k3s doesn't have a builtin plugin for a local registry, so this is how to install the docker registry. The registry will be exposed via the default traefik ingress (on port 80 and 443).
resolvectl query registry.localhost
returns127.0.0.1
- on most Linux distros it does. If not, enable and configuresystemd-resolved
- K3s comes with traefik ingress controller by default, so the ingress for the registry service is configured for that.