Skip to content

Commit a438364

Browse files
committed
edit pull secret example
1 parent 8e92f68 commit a438364

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

docs/vendor/helm-image-registry.mdx

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ To use the Replicated proxy registry for applications installed with Helm:
2828
* `APP_SLUG` is the unique slug of your application.
2929
* `EXTERNAL_REGISTRY_IMAGE_URL` is the path to the private image on your external registry.
3030

31-
**Example with proxy.replicated.com:**
31+
**Example:**
3232

3333
```yaml
3434
# values.yaml
3535
api:
3636
image:
37+
# proxy.registry.com or your custom domain
3738
registry: ghcr.io
3839
repository: proxy/app/ghcr.io/cloudnative-pg/cloudnative-pg
3940
tag: catalog-1.24.0
@@ -82,18 +83,18 @@ To use the Replicated proxy registry for applications installed with Helm:
8283
**Example:**
8384

8485
```yaml
85-
# templates/deployment.yaml
86-
87-
image: "{{ .Values.images.your-app.apiImageRepository }}:{{ .Values.images.your-app.apiImageTag }}"
88-
# Add the pull secret
89-
{{ if .Values.global.replicated.dockerconfigjson }}
90-
imagePullSecrets:
91-
- name: replicated-pull-secret
92-
{{ end }}
93-
name: your-app
94-
ports:
95-
- containerPort: 3000
96-
name: http
86+
apiVersion: v1
87+
kind: Pod
88+
spec:
89+
containers:
90+
- name: api
91+
# Access the registry, repository, and tag fields from the values file
92+
image: {{ .Values.images.api.registry }}/{{ .Values.images.api.repository }}:{{ .Values.images.api.tag }}
93+
# Add the pull secret
94+
{{ if .Values.global.replicated.dockerconfigjson }}
95+
imagePullSecrets:
96+
- name: replicated-pull-secret
97+
{{ end }}
9798
```
9899

99100
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).

0 commit comments

Comments
 (0)