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
You can install {product} in a fully disconnected or partially disconnected environment using the {product} Helm chart.
8
8
9
+
[role="_additional-resources"]
10
+
.Additional resources
11
+
* For more information about registry authentication, see https://access.redhat.com/RegistryAuthentication[{company-name} Container Registry Authentication].
12
+
9
13
== Installing {product} on {ocp-short} in a partially disconnected environment with the Helm chart
10
14
11
-
If your network has access to the `registry.redhat.io` registry and the `charts.openshift.io` Helm Chart repository, you can deploy your {product} instance in your partially disconnected environment by mirroring the specified resources directly to the target registry.
15
+
If your network has access to the `registry.redhat.io` registry and the `charts.openshift.io` Helm chart repository, you can deploy your {product} instance in your partially disconnected environment by mirroring the specified resources directly to the target registry.
12
16
13
17
.Prerequisites
14
18
15
19
* You have installed {ocp-brand-name} {ocp-version-min} or later.
16
-
* You have access to the `registry.redhat.io`.
17
20
* You have access to the `charts.openshift.io` Helm chart repository.
21
+
* You have access to the `registry.redhat.io`.
18
22
* You have access to a mirror registry that can be reached from the disconnected cluster, for example, the {ocp-short} image registry. For more information about exposing the {ocp-short} image registry, see https://docs.redhat.com/en/documentation/openshift_container_platform/{ocp-version}/html-single/registry/index#securing-exposing-registry[Exposing the registry].
19
23
* You are logged in to your target mirror registry and have permissions to push images to it. For more information, see link:https://docs.openshift.com/container-platform/4.17/disconnected/mirroring/installing-mirroring-disconnected.html#installation-adding-registry-pull-secret_installing-mirroring-disconnected[Configuring credentials that allow images to be mirrored].
20
24
* You have installed the {openshift-cli} on your workstation.
`<mirror-configuration-file>` :: Specifies the name of your mirror configuration yaml file, for example, `mirror-config.yaml`
68
+
`<mirror-config-directory>` :: Specifies the location of your image set configuration file on your system, for example, `.user`.
69
+
70
+
`<mirror-configuration-file>` :: Specifies the name of your image set configuration file, for example, `ImageSetConfiguration.yaml`.
65
71
66
72
`<target-mirror-registry>` :: Specifies the location and name of your target mirror registry, for example,`docker://registry.example:5000`.
67
73
--
68
74
+
69
75
[NOTE]
70
76
====
71
-
Running the `oc-mirror` command creates a `ImageContentSourcePolicy` (ICSP) manifestthat you can apply against the cluster in a later step.
77
+
Running the `oc-mirror` command creates a local workspace containing the Helm chart and a `ImageContentSourcePolicy` (ICSP) manifest. The ICSP manifest contains an automatically-generated `imageContentSourcePolicy.yaml` file that you must apply against the cluster in a later step.
72
78
====
73
79
+
74
80
.Example output
@@ -78,24 +84,57 @@ Writing image mapping to oc-mirror-workspace/results-1738070846/mapping.txt
78
84
Writing ICSP manifests to oc-mirror-workspace/results-1738070846
79
85
----
80
86
+
81
-
. In the `oc-mirror` command output, find the directory containing the Helm chart that you want to use, for example, `mapping.txt`.
82
-
. Locate the `ImageContentSourcePolicy` (ICSP) manifest that was automatically generated by running the `oc-mirror` command and apply it against the cluster by running the `oc create` command. For example:
87
+
. In your workspace, locate the `imageContentSourcePolicy.yaml` file by running the `ls` command. For example:
. In your air-gapped environment, deploy the Helm chart to the namespace that you want to use by running the `helm install` command. For example:
97
+
`<workspace-directory>` :: Specifies the name of your workspace directory, for example, `oc-mirror-workspace`.
98
+
99
+
`<results-directory>` :: Specifies the name of your results directory, for example, `results-1738070846`.
100
+
--
101
+
+
102
+
. To mirror the Helm chart, deploy the `imageContentSourcePolicy.yaml` file in the disconnected cluster by running the `oc apply` command. For example:
`<workspace-directory>` :: Specifies the name of your workspace directory, for example, `oc-mirror-workspace`.
113
+
114
+
`<results-directory>` :: Specifies the name of your results directory, for example, `results-1738070846`.
115
+
116
+
`<results-directory>` :: Specifies the name of the image content source policy file, for example, `ImageContentSourcePolicy.yaml `.
117
+
--
118
+
. In your air-gapped environment, deploy the Helm chart to the namespace that you want to use by running the `helm install` command and `namespace` options. For example:
`<rhdh-instance>` :: Specifies the name of your {product} instance, for example, `my-rhdh`
129
+
130
+
`<workspace-directory>` :: Specifies the name of your workspace directory, for example, `oc-mirror-workspace`.
131
+
132
+
`<charts-directory>` :: Specifies the name of the charts directory, for example, `charts`.
133
+
134
+
`<results-directory>` :: Specifies the name of your results directory, for example, `results-1738070846`.
135
+
136
+
`<archive-file>` :: Specifies the name of the archive file containing the resources that you want to mirror, for example, `redhat-developer-hub-1.4.1.tgz`.
137
+
99
138
`<your-namespace>` :: Specifies the namespace that you want to deploy the Helm chart to, for example, `{my-product-namespace}`.
== Installing {product} on {ocp-short} in a fully disconnected environment with the Helm chart
115
154
116
-
You can use the Helm chart to install {product} by mirroring specified resources and transferring them to your air-gapped environment without any connection to the internet.
155
+
If your network has access to the registry through a bastion host or physical disk, you can use the Helm chart to install {product} by mirroring specified resources and transferring them to your air-gapped environment without any connection to the internet.
117
156
118
157
.Prerequisites
119
158
@@ -143,27 +182,33 @@ mirror:
143
182
----
144
183
<1> The name of the repository that you want to mirror, for example, `openshift-charts`.
145
184
<2> The URL for the repository that you want to mirror, for example, `https://charts.openshift.io`.
146
-
<3> The name of the chart that you want to mirror, for example, `redhat-developer-hub`.
185
+
<3> The name of the Helm chart that you want to mirror, for example, `redhat-developer-hub`.
147
186
<4> The version of {product} that you want to use, for example, `{product-version}`
148
187
149
-
. Mirror the resources specified in the `ImageSetConfiguration` file by running the following command:
188
+
. Mirror the resources specified in the `ImageSetConfiguration` file by running the `oc-mirror` command. For example:
`<mirror-config-directory>` :: Specifies the location of your image set configuration file on your system, for example, `.user`.
199
+
200
+
`<mirror-configuration-file>` :: Specifies the name of your image set configuration file, for example, `ImageSetConfiguration.yaml`.
201
+
159
202
`<mirror-configuration-file>` :: Specifies the name of your mirror configuration yaml file, for example, `mirror-config.yaml`
160
203
161
-
`<mirror-archive-file>` :: Specifies the location and name of `.tar` file containing the mirror archive, for example,`file://mirror-archive`.
204
+
`<mirror-archive-directory>` :: Specifies the location of your `.tar` file containing the mirror archive, for example,`.user`.
205
+
206
+
`<mirror-archive-file>` :: Specifies the location and name of your `.tar` file containing the mirror archive, for example,`file://mirror-archive`.
162
207
--
163
208
+
164
209
[NOTE]
165
210
====
166
-
Running the `oc-mirror` command creates a `ImageContentSourcePolicy` (ICSP) manifestthat you can apply against the cluster in a later step.
211
+
Running the `oc-mirror` command creates a local workspace containing the Helm chart and a `ImageContentSourcePolicy` (ICSP) manifest. The ICSP manifest contains an automatically-generated `imageContentSourcePolicy.yaml` file that you must apply against the cluster in a later step.
`<mirror-archive-file>` :: Specifies the name of the file containing the resources that you want to mirror, for example,`mirror_seq1_0000.tar`.
237
+
238
+
`<target-registry>` :: Specifies the name of the target registry that you want to push the mirrored images to, for example, `docker://registry.localhost:5000`.
239
+
--
240
+
+
188
241
.Example output
189
242
[source,terminal,subs="attributes+"]
190
243
----
191
244
Wrote release signatures to oc-mirror-workspace/results-1738075410
192
245
Writing image mapping to oc-mirror-workspace/results-1738075410/mapping.txt
193
246
Writing ICSP manifests to oc-mirror-workspace/results-1738075410
194
247
----
195
-
. In the `oc-mirror` command output, find the directory containing the Helm chart that you want to use, for example, `mapping.txt`.
196
-
. Locate the `ImageContentSourcePolicy` (ICSP) manifest that was automatically generated by running the `oc-mirror` command and apply it against the cluster by running the `oc apply` command. For example:
248
+
+
249
+
. In your workspace, locate the `imageContentSourcePolicy.yaml` file by running the `ls` command. For example:
. In your air-gapped environment, deploy the {product} Helm chart. For example:
255
+
+
256
+
--
257
+
where:
258
+
259
+
`<workspace-directory>` :: Specifies the name of your workspace directory, for example, `oc-mirror-workspace`.
260
+
261
+
`<results-directory>` :: Specifies the name of your results directory, for example, `results-1738070846`.
262
+
--
263
+
+
264
+
. To mirror the Helm chart, deploy the `imageContentSourcePolicy.yaml` file in the disconnected cluster by running the `oc apply` command. For example:
`<workspace-directory>` :: Specifies the name of your workspace directory, for example, `oc-mirror-workspace`.
275
+
276
+
`<results-directory>` :: Specifies the name of your results directory, for example, `results-1738070846`.
277
+
278
+
`<results-directory>` :: Specifies the name of the image content source policy file, for example, `ImageContentSourcePolicy.yaml `.
279
+
--
280
+
. In your air-gapped environment, deploy the Helm chart to the namespace that you want to use by running the `helm install` command and `namespace` options. For example:
`<rhdh-instance>` :: Specifies the name of your {product} instance, for example, `my-rhdh`
291
+
292
+
`<workspace-directory>` :: Specifies the name of your workspace directory, for example, `oc-mirror-workspace`.
203
293
294
+
`<charts-directory>` :: Specifies the name of the charts directory, for example, `charts`.
295
+
296
+
`<results-directory>` :: Specifies the name of your results directory, for example, `results-1738070846`.
297
+
298
+
`<archive-file>` :: Specifies the name of the archive file containing the resources that you want to mirror, for example, `redhat-developer-hub-1.4.1.tgz`.
299
+
300
+
`<your-namespace>` :: Specifies the namespace that you want to deploy the Helm chart to, for example, `{my-product-namespace}`.
301
+
--
302
+
303
+
.Verification
304
+
. To verify that all resources are successfully deployed and running, check the status of your deployments and pods in the cluster.
305
+
. View the router base URL by entering the following command:
306
+
+
204
307
[source,terminal,subs="attributes+"]
205
308
----
206
309
CLUSTER_ROUTER_BASE=$(oc get route console -n openshift-console -o=jsonpath='{.spec.host}' | sed 's/^[^.]*\.//')
* For more information about registry authentication, see https://access.redhat.com/RegistryAuthentication[{company-name} Container Registry Authentication].
313
+
. Ensure that the route matches the expected URL based on the router base of the cluster. If necessary, update the route to align with your expected configuration.
0 commit comments