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
Copy file name to clipboardExpand all lines: docs/partials/proxy-service/_step-inject-pull-secret.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
In the HelmChart v2 custom resource, configure the `values` key to inject the Replicated image pull secret into your Helm values. This provides authentication for the proxy registry. Use the KOTS [ImagePullSecretName](/reference/template-functions-config-context#imagepullsecretname) template function to get the pull secret name.
1
+
In the HelmChart v2 custom resource, configure the `values` key to inject the Replicated image pull secret into your Helm values. This provides authentication for the proxy registry. Use the [ImagePullSecretName](/reference/template-functions-config-context#imagepullsecretname) template function to get the pull secret name.
2
2
3
3
<details>
4
4
<summary>What is the Replicated image pull secret?</summary>
@@ -34,7 +34,7 @@ In the HelmChart v2 custom resource, configure the `values` key to inject the Re
Copy file name to clipboardExpand all lines: docs/partials/proxy-service/_step-rewrite-helm-values.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
-
For each image reference in your Helm chart values file, set the image repository URL to the location of the image in the proxy registry.
1
+
For each Helm chart used by your application, in the Helm chart's `values.yaml` file, update all references to private or third-party images to use the Replicated proxy registry domain.
2
+
3
+
The proxy registry URL has the following format: `DOMAIN/proxy/APP_SLUG/UPSTREAM_REGISTRY/IMAGE_PATH`
2
4
3
-
The proxy registry URL has the following format: `DOMAIN/proxy/APP_SLUG/EXTERNAL_REGISTRY_IMAGE_URL`
4
-
5
5
Where:
6
-
*`DOMAIN` is either `proxy.replicated.com` or your custom domain.
7
-
*`APP_SLUG` is the unique slug of your application.
8
-
* `EXTERNAL_REGISTRY_IMAGE_URL` is the path to the private image on your external registry.
6
+
-`DOMAIN` is either `proxy.replicated.com` or your custom domain
7
+
-`APP_SLUG` is the unique slug of your application
8
+
- `UPSTREAM_REGISTRY/IMAGE_PATH` is the full upstream image path. For example, `ghcr.io/my-org/my-image` or `docker.io/bitnami/postgresql`.
Copy file name to clipboardExpand all lines: docs/reference/template-functions-about.mdx
+18-11Lines changed: 18 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ This topic describes Replicated template functions, including information about
12
12
13
13
## Overview
14
14
15
-
For Kubernetes manifest files for applications deployed by a Replicated installer (Embedded Cluster, KOTS, kURL), Replicated provides a set of custom template functions based on the Go text/template library.
15
+
Replicated provides a set of custom template functions based on the Go text/template library. You can use the Replicated template functions in Kubernetes manifest files for applications deployed by a Replicated installer (Embedded Cluster, KOTS, kURL).
16
16
17
17
<UseCases/>
18
18
@@ -26,16 +26,6 @@ You can use Replicated template functions in Kubernetes manifest files for appli
26
26
* Kubernetes objects like Deployments, Services, Secrets, or ConfigMaps
27
27
* Kubernetes Operators
28
28
29
-
### Limitations
30
-
31
-
* Not all fields in the Config and Application custom resources support templating. For more information, see [Application](/reference/custom-resource-application) and [Item Properties](/reference/custom-resource-config#item-properties) in _Config_.
32
-
33
-
* Templating is not supported in the [Embedded Cluster Config](/embedded-cluster/v3/embedded-config) resource.
34
-
35
-
* Replicated template functions are not directly supported in Helm charts. For more information, see [Helm Charts](#helm-charts) below.
36
-
37
-
### Helm charts
38
-
39
29
Replicated template functions are _not_ directly supported in Helm charts. However, the HelmChart custom resource provides a way to map values rendered by Replicated template functions to Helm chart values. This allows you to use Replicated template functions with Helm charts without making changes to those Helm charts.
40
30
41
31
For information about how to map values from the HelmChart custom resource to Helm chart `values.yaml` files, see [Setting Helm Chart Values with KOTS](/vendor/helm-optional-value-keys).
@@ -46,6 +36,23 @@ During application installation and upgrade, KOTS templates all Kubernetes manif
46
36
47
37
For the [Config](/reference/custom-resource-config) custom resource, KOTS templates each item separately so that config items can be used in templates for other items. For examples of this, see [Using Conditional Statements in Configuration Fields](/vendor/config-screen-conditional) and [Template Function Examples](/reference/template-functions-examples).
48
38
39
+
### Limitations
40
+
41
+
* Not all fields in the Config and Application custom resources support templating. For more information, see [Application](/reference/custom-resource-application) and [Item Properties](/reference/custom-resource-config#item-properties) in _Config_.
42
+
43
+
* Templating is not supported in the [Embedded Cluster Config](/embedded-cluster/v3/embedded-config) resource.
44
+
45
+
* Replicated template functions are not directly supported in Helm charts. For more information, see [Helm Charts](#helm-charts) on this page.
46
+
47
+
* Embedded Cluster v3 does not support the following template functions:
48
+
* HasLocalRegistry
49
+
* LocalRegistryAddress
50
+
* LocalRegistryHost
51
+
* LocalRegistryNamespace
52
+
* LocalImageName
53
+
54
+
These template functions are typically used to conditionally rewrite image references in air gap installations to reference the local image registry. For Embedded Cluster v3 installations, use the ReplicatedImageName, ReplicatedImageName, and ReplicatedImageName template functions instead. For more information, see [Template Functions for Embedded Cluster (Beta)](/embedded-cluster/v3/template-functions).
55
+
49
56
## Syntax {#syntax}
50
57
51
58
The Replicated template function syntax supports the following functionally equivalent delimiters:
Copy file name to clipboardExpand all lines: docs/reference/template-functions-config-context.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -194,6 +194,10 @@ Returns true if the configuration option value is not equal to the supplied valu
194
194
195
195
## LocalRegistryAddress
196
196
197
+
:::note
198
+
The LocalRegistryAddress template function is not supported for installations with Embedded Cluster v3. See [Template Functions for Embedded Cluster (Beta)](/embedded-cluster/v3/template-functions).
199
+
:::
200
+
197
201
```go
198
202
func LocalRegistryAddress() string
199
203
```
@@ -203,6 +207,10 @@ This will always return everything before the image name and tag.
203
207
204
208
## LocalRegistryHost
205
209
210
+
:::note
211
+
The LocalRegistryHost template function is not supported for installations with EmbeddedCluster v3. See [Template FunctionsforEmbeddedCluster (Beta)](/embedded-cluster/v3/template-functions).
212
+
:::
213
+
206
214
```go
207
215
func LocalRegistryHost() string
208
216
```
@@ -236,6 +244,10 @@ For more information, see [Set Helm Values with KOTS](/vendor/helm-optional-valu
236
244
237
245
## LocalRegistryNamespace
238
246
247
+
:::note
248
+
The LocalRegistryNamespace template function is not supported for installations with EmbeddedCluster v3. See [Template FunctionsforEmbeddedCluster (Beta)](/embedded-cluster/v3/template-functions).
249
+
:::
250
+
239
251
```go
240
252
func LocalRegistryNamespace() string
241
253
```
@@ -267,6 +279,10 @@ For more information, see [Set Helm Values with KOTS](/vendor/helm-optional-valu
267
279
268
280
## LocalImageName
269
281
282
+
:::note
283
+
The LocalImageName template function is not supported for installations with EmbeddedCluster v3. See [Template FunctionsforEmbeddedCluster (Beta)](/embedded-cluster/v3/template-functions).
The HasLocalRegistry template function is not supported for installations with Embedded Cluster v3. See [Template Functions for Embedded Cluster (Beta)](/embedded-cluster/v3/template-functions).
Copy file name to clipboardExpand all lines: docs/vendor/private-images-kots.mdx
+22-2Lines changed: 22 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,29 @@ This topic describes how to use the Replicated proxy registry for applications d
11
11
12
12
## Configure your application to use the proxy registry
13
13
14
-
These steps assume that you package your application with Helm and that you install with the KOTS [HelmChart v2](/reference/custom-resource-helmchart-v2) custom resource.
14
+
These steps assume that you package your application with Helm and that you install with the [HelmChart v2](/reference/custom-resource-helmchart-v2) custom resource.
15
15
16
-
If you are installing with the HelmChart v1 custom resource, or if your application is not packaged with Helm, there are different steps for configuring your application to use the proxy registry. See [Configure Other Application Types](#other) below.
16
+
If you are installing with the HelmChart v1 custom resource, or if your application is not packaged with Helm, there are different steps for configuring your application to use the proxy registry. See [Configure other application types](#other) below.
17
+
18
+
### Embedded Cluster v3 (Beta) {#configure-v3}
19
+
20
+
Follow these steps to use the proxy registry with applications installed with [Embedded Cluster v3 (Beta)](/embedded-cluster/v3/embedded-overview).
21
+
22
+
Embedded Cluster v3 configures the cluster to automatically authenticate to the Replicated proxy registry for all pods.
23
+
24
+
For installations Embedded Cluster v3,
25
+
26
+
1. <StepCreds/>
27
+
28
+
1. <StepCustomDomain/>
29
+
30
+
1. <RewriteHelmValues/>
31
+
32
+
1. Create a new release with your changes. Promote the release to a development channel. See [Managing Releases with Vendor Portal](releases-creating-releases).
33
+
34
+
1. Install in a development environment to test your changes. See [Online installation with Embedded Cluster](/embedded-cluster/v3/installing-embedded).
35
+
36
+
### Embedded Cluster v2, KOTS, or kURL
17
37
18
38
To configure your application to use the proxy registry for installations with a Replicated installer:
0 commit comments