Pull credentials and the build registry
How klickops gets private images, and where the images it builds for you are stored.
On this page
Two different things
The two names sound alike. They work in opposite directions.
| What it is | Direction | |
|---|---|---|
| Pull credentials | Login details for a registry where your images live | klickops reads from it |
| Build registry | Where klickops stores the images it builds for you | klickops writes to it |
Most projects need neither. klickops pulls public images without any credentials. Builds go to the registry klickops runs itself, unless you set a different one.
Pull credentials
You need these when a deployment fails because klickops can't pull a private image. If a public image fails to pull, the problem is something else. Usually it's a typo in the tag.
- Open Registries in the organization.
- Enter the registry host, a username and a token. Use a token or a deploy key and avoid your password. You can revoke a token and keep your own login as it is.
- Leave Project on Whole org. Or pick one project, and the credential only works there.
- Deploy the app again. Apps in the organization, or in the project you picked, can now pull images from that host.
klickops stores the token as a secret and never shows it again. That's true for every secret.
The build registry
When klickops builds from a repository, it creates an image. That image needs a place to live. By default it goes to the registry klickops runs itself, so it never leaves the platform.
You can set a different registry. That's useful when your own systems need to pull these images too. It also helps when your rules say all artifacts must live in your own registry. Enter the host and credentials that are allowed to push. From then on, builds go there.
Settings reference
| Setting | Default | What it does |
|---|---|---|
| Host | none | The registry hostname, for example ghcr.io or registry.example.com. |
| Username | none | The account or robot klickops uses to pull. |
| Token | none | You can set and replace it. Nobody can read it. |
| Build registry | klickops-internal | Where klickops pushes the images it builds. |
Limits and gotchas
- Credentials belong to the organization or to one project. With Whole org, every project in the organization can use them. If you assign them to a project, they only work there.
- Old images don't move. When you change the build registry, existing images stay where they are. Existing deployments keep pulling from there.
- Builds check the build registry's certificate. If the registry uses plain HTTP or a self-signed certificate, the push fails. Turn on Allow plain-HTTP / self-signed certificates in its settings.
- A rotated token fails quietly at first. Running apps keep running, because their image is already on the server. You see the error at the next deploy or restart.
- Some registries need the full path. The host alone isn't enough for them. If a pull keeps failing with the right credentials, check the image reference. It must include the project or namespace part the registry expects.
Related
- Apps is where you use a private image.
- Deploying from Git builds images and pushes them to the build registry.