You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide read-only credentials for the external private registry in your Replicated account. This allows Replicated to access the images through the proxy registry. See [Add Credentials for an External Registry](packaging-private-images#add-credentials-for-an-external-registry) in _Connecting to an External Registry_.
1
+
In the Vendor Portal, go to **Images > Add external registry** and provide read-only credentials for your registry. This allows Replicated to access the images through the proxy registry. See [Add Credentials for an External Registry](packaging-private-images#add-credentials-for-an-external-registry) in _Connecting to an External Registry_.
2
+
3
+
<imgalt="Link a new registry in the Vendor Portal"src="../images/add-external-registry.png"width="500"/>
(Optional) Add a custom domain for the proxy registry instead of `proxy.replicated.com`. See [Use Custom Domains](custom-domains-using).
1
+
(Recommended) Go to **Custom Domains > Add custom domain** and add a custom domain for the proxy registry. See [Use Custom Domains](custom-domains-using).
Copy file name to clipboardExpand all lines: docs/vendor/helm-image-registry.mdx
+63-94Lines changed: 63 additions & 94 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,127 +7,96 @@ This topic describes how to use the Replicated proxy registry to proxy images fo
7
7
8
8
## Overview
9
9
10
-
With the Replicated proxy registry, each customer's unique license can grant proxy access to images in an external private registry. To enable the proxy registry for Helm installations, you must create a Secret with `type: kubernetes.io/dockerconfigjson` to authenticate with the proxy registry.
10
+
With the Replicated proxy registry, each customer's unique license can grant proxy access to images in an external private registry.
11
11
12
-
During Helm installations, after customers provide their license ID, a `global.replicated.dockerconfigjson` field that contains a base64 encoded Docker configuration file is automatically injected in the Helm chart values. You can use this `global.replicated.dockerconfigjson` field to create the required pull secret.
12
+
During Helm installations, after customers provide their license ID, a `global.replicated.dockerconfigjson` field that contains a base64 encoded Docker configuration file is automatically injected in the Helm chart values. You can use this `global.replicated.dockerconfigjson` field to create the pull secret required to authenticate with the proxy registry.
13
13
14
-
For information about how Kubernetes uses the `kubernetes.io/dockerconfigjson` Secret type to authenticate to a private image registry, see [Pull an Image from a Private Registry](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/) in the Kubernetes documentation.
14
+
## Pull Private Images Through the Proxy Registry in Helm Installations
15
15
16
-
## Enable the Proxy Registry
17
-
18
-
This section describes how to enable the proxy registry for applications deployed with Helm, including how to use the `global.replicated.dockerconfigjson` field that is injected during application deployment to create the required pull secret.
19
-
20
-
To enable the proxy registry:
16
+
To use the Replicated proxy registry for applications installed with Helm:
21
17
22
18
1. <StepCreds/>
23
19
24
20
1. <StepCustomDomain/>
25
21
26
-
1. In your Helm chart templates, create a Kubernetes Secret to evaluate if the `global.replicated.dockerconfigjson` value is set, and then write the rendered value into a Secret on the cluster:
22
+
1. In your Helm chart values file, set your image repository URL to the location of the image on the proxy registry. If you added a custom domain, use your custom domain. Otherwise, use `proxy.replicated.com`.
23
+
24
+
The proxy registry URL has the following format: `DOMAIN/proxy/APP_SLUG/EXTERNAL_REGISTRY_IMAGE_URL`
25
+
26
+
Where:
27
+
*`DOMAIN` is either `proxy.replicated.com` or your custom domain.
28
+
*`APP_SLUG` is the unique slug of your application.
29
+
*`EXTERNAL_REGISTRY_IMAGE_URL` is the path to the private image on your external registry.
1. In your Helm chart templates, create a Kubernetes Secret to evaluate if the `global.replicated.dockerconfigjson` value is set and then write the rendered value into a Secret on the cluster, as shown below.
58
+
59
+
This Secret is used to authenticate with the proxy registry. For information about how Kubernetes uses the `kubernetes.io/dockerconfigjson` Secret type to provide authentication for a private registry, see [Pull an Image from a Private Registry](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/) in the Kubernetes documentation.
60
+
61
+
:::note
62
+
Do not use `replicated` for the name of the image pull secret because the Replicated SDK automatically creates a Secret named `replicated`. Using the same name causes an error.
63
+
:::
27
64
28
65
```yaml
29
-
#/templates/replicated-pull-secret.yaml
66
+
# templates/replicated-pull-secret.yaml
30
67
31
68
{{ if .Values.global.replicated.dockerconfigjson }}
32
69
apiVersion: v1
33
70
kind: Secret
34
71
metadata:
72
+
# Note: Do not use "replicated" for the name of the pull secret
If you use the Replicated SDK, do not use `replicated` for the name of the image pull secret because the SDK automatically creates a Secret named `replicated`. Using the same name causes an error.
44
-
:::
45
-
46
-
1. Ensure that you have a field in your Helm chart values file for your image repository URL, and that any references to the image in your Helm chart access the field from your values file.
{{ if .Values.global.replicated.dockerconfigjson }}
95
+
imagePullSecrets:
96
+
- name: replicated-pull-secret
97
+
{{ end }}
101
98
```
102
99
103
100
1. Package your Helm chart and add it to a release. Promote the release to a development channel. See [Managing Releases with Vendor Portal](releases-creating-releases).
104
101
105
-
1. Install the chart in a development environment to test your changes:
106
-
107
-
1. Create a local `values.yaml` file to override the default external registry image URL with the URL for the image on `proxy.replicated.com`.
108
-
109
-
The proxy registry URL has the following format: `proxy.replicated.com/proxy/APP_SLUG/EXTERNAL_REGISTRY_IMAGE_URL`
110
-
111
-
Where:
112
-
* `APP_SLUG` is the slug of your Replicated application.
113
-
* `EXTERNAL_REGISTRY_IMAGE_URL` is the path to the private image on your external registry.
If you configured a custom domain for the proxy registry, use the custom domain instead of `proxy.replicated.com`. For more information, see [Use Custom Domains](custom-domains-using).
128
-
:::
129
-
130
-
1. Log in to the Replicated registry and install the chart, passing the local `values.yaml` file you created with the `--values` flag. See [Install with Helm](install-with-helm).
131
-
132
-
133
-
102
+
1. Install in a development environment to test your changes. See [Install with Helm](/vendor/install-with-helm).
0 commit comments