When building your application, you have the option to use the Replicated private registry or any supported external private or public registry.
External Registry Support
When packaging and delivering an enterprise application, a common problem is the need to include private Docker images.
Most enterprise applications consist of public images (postgres, mysql, redis, elasticsearch) and private images (the application images).
When delivering a KOTS application through vendor.replicated.com, there’s built-in support to include private images – without managing or distributing actual registry credentials to your customer.
The license file grants revokable image pull access to private images, whether these are stored in the Replicated private registry, or another private registry server that you’ve decided to use.
If your application images are already available in a private, but accessible image registry (such as Docker Hub, quay.io, ECR, GCR, Artifactory or such), then your application licenses can be configured to grant proxy, or pull-through access to the assignee without giving actual credentials to the customer.
This is useful and recommended because it prevents you from having to modify the process you use to build and push application images, and it gives you the ability to revoke a customer’s ability to pull (such as on trial expiration).
This External Registry is shared across all KOTS applications in a team, allowing images to be used across multiple apps.
To configure access to your private images, log in to vendor.replicated.com, and click on the images menu item under your application.
Here, there’s a button named “Add External Registry”.
Fill this modal out with an endpoint (quay.io, index.docker.io, gcr.io, etc) and provide a username and password to Replicated that has pull access.
For more information, see the documentation on our registry.
Replicated will store your username and password encrypted and securely, and it (and the encryption key) will never leave our servers.
Your application YAML will reference images that it cannot access.
KOTS recognizes this, and will patch the YAML using Kustomize to change the image name.
When KOTS is attempting to install an application, it will attempt to load image manifest using the image reference from the PodSpec.
If it’s loaded successfully, no changes will be made to the application.
If a 401 is received and authentication is required, KOTS will assume that this is private image that needs to be proxied through the Replicated registry-proxy service.
A patch will be written to the midstream kustomization.yaml to change this image name during deployment.
For example, given a private image hosted at
quay.io/my-org/api:v1.0.1, a deployment and pod spec may reference it like this:
- name: api
When the application is deployed, KOTS will detect that it cannot access the image at quay.io and will create a patch in the
- name: quay.io/my-org/api:v1.0.1
This will change that image name everywhere it appears.
In addition, KOTS will create an imagePullSecret dynamically and automatically at install time.
This secret is based on the customer license, and will be used to pull all images from
Images hosted at
registry.replicated.com will not be rewritten.
However, the same secret will be added to those PodSpecs as well.
KOTS Application deployments are supported via image tags in all use cases. KOTS has limited support for deploying via image digests. Use of image digests are only supported for fully online installs where all images can be pulled from the Replicated registry, a public repo, or proxied from a private repo via the Replicated registry.
Replicated Private Registry
When using the Replicated Private Registry, you have 2 options to connect with the
registry.replicated.com container registry:
docker login registry.replicated.com with your Vendor portal email and password credentials
docker login registry.replicated.com with a Vendor Portal API token for both username and password.
Once logged in, you will need to tag your image. Replicated accepts images in the standard Docker format:
registry.replicated.com/<application-slug>/<image-name>:<version>. You can find your application slug on the Images page of the Replicated Vendor Portal.
An example of tagging an existing image is:
$ docker tag worker registry.replicated.com/myapp/worker:1.0.1
Once the image is tagged you can use
docker push to push your private image to the Replicated private registry:
$ docker push registry.replicated.com/app-slug/image:tag
For additional information on building, tagging and pushing docker images, please refer to the
Docker CLI Documentation.
When deploying pods to namespaces other than the KOTS application namespace, the namespace must be added to the
additionalNamespaces attribute of the Application spec.
This will ensure that the application image pull secret will get auto-provisioned by KOTS in the namespace to allow the pod to pull the image.
For more information about the
additionalNamespaces attribute see this doc.