How should we host or reach a private container registry?
A Syself Autopilot cluster pulls from any private container registry once you give the pods its credentials in an imagePullSecret. Where the registry runs is your choice:
- External registry (GHCR, GitLab, ECR and others): create an
imagePullSecretwith a pull-only token and reference it in the pod spec or in the namespace's ServiceAccount. A registry with short-lived tokens, such as ECR, also needs a job that renews the Secret. - In the cluster: run Harbor or Distribution (the Docker registry) as a workload and expose it through your ingress controller.
- Next to the cluster: run the registry on a separate Hetzner server in the same location. Pulls stay fast, and the registry does not depend on the cluster it serves.
The registry settings of the container runtime are part of Syself Linux and cannot be changed on a node. This includes registry mirrors and extra certificate authorities. A registry you host yourself therefore needs a TLS certificate from a public certificate authority, for example Let's Encrypt. What is fixed on a node is listed in Can we tune kubelet and containerd settings? If you need a registry mirror or your own certificate authority on the nodes, reach out to us at support@syself.com with the use case.
See Pull images from a private registry for the Secret, credential rotation and ImagePullBackOff errors.
Related questions
