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: modules/installation/proc-install-rhdh-helm-airgapped-full.adoc
+28-31Lines changed: 28 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,38 +6,36 @@ If your network has access to the registry through a bastion host, you can use t
6
6
.Prerequisites
7
7
8
8
* You have set up your workstation.
9
-
** You have access to the registry.redhat.io.
9
+
** You have an account in https://developers.redhat.com/[{rhdeveloper-name}] portal.
10
10
** You have access to the charts.openshift.io Helm chart repository.
11
11
** You have installed the {openshift-cli} on your workstation.
12
-
* {ocp-docs-link}/html-single/disconnected_environments/index#about-installing-oc-mirror-v2[You have installed the oc-mirror OpenShift CLI plugin].
13
-
** You have an account in https://developers.redhat.com/[{rhdeveloper-name}] portal.
14
-
** You have set up your intermediary host.
15
-
** Your host has access to the disconnected cluster and to the target mirror registry, for example, the {ocp-brand-name} image registry. For more information about exposing the {ocp-short} image registry, see {ocp-docs-link}/html-single/registry/index#securing-exposing-registry[Exposing the registry].
16
-
** {ocp-docs-link}/html-single/disconnected_environments/index#about-installing-oc-mirror-v2[You have installed the oc-mirror OpenShift CLI plugin].
12
+
** You have installed the {ocp-docs-link}/html-single/disconnected_environments/index#installation-oc-mirror-installing-plugin_about-installing-oc-mirror-v2[`oc-mirror`] tool, with a version corresponding to the version of your {ocp-short} cluster.
13
+
* You have set up your intermediary host.
14
+
** Your host has access to the link:https://registry.redhat.io[{company-name} Ecosystem Catalog].
15
+
** Your host has access to image registry on the destination host.
16
+
See {ocp-docs-link}/html-single/registry/index#securing-exposing-registry[Exposing the registry].
17
+
* You have set up your destination host.
17
18
** You have installed {ocp-brand-name} {ocp-version-min} or later.
18
-
** You have installed the {openshift-cli} on your workstation.
19
-
* Make sure that your system meets the minimum sizing requirements. See {about-book-link}#rhdh-sizing_about-rhdh[Sizing requirements for {product}].
19
+
** Your system meets the minimum sizing requirements. See {about-book-link}#rhdh-sizing_about-rhdh[Sizing requirements for {product}].
20
20
21
21
.Procedure
22
22
. Create an `ImageSetConfiguration` file to specify the resources that you want to mirror. For example:
23
23
+
24
-
[source,terminal,subs="+quotes"]
24
+
[source,yaml,subs="+attributes,+quotes"]
25
25
----
26
26
apiVersion: mirror.openshift.io/v1alpha2
27
27
kind: ImageSetConfiguration
28
28
mirror:
29
29
helm:
30
30
repositories:
31
-
- name: _<repository_name>_ (1)
32
-
url: _<repository_url>_ (2)
31
+
- name: openshift-charts
32
+
url: https://charts.openshift.io
33
33
charts:
34
-
- name: _<chart_name>_ (3)
35
-
version: "_<rhdh_version>_" (4)
34
+
- name: redhat-developer-hub
35
+
version: "{product-version}"
36
36
----
37
-
<1> The name of the repository that you want to mirror, for example, `openshift-charts`.
38
-
<2> The URL for the repository that you want to mirror, for example, `https://charts.openshift.io`.
39
-
<3> The name of the Helm chart that you want to mirror, for example, `redhat-developer-hub`.
40
-
<4> The version of {product} that you want to use, for example, `{product-version}`
37
+
where:
38
+
`version: "{product-version}"`:: Enter the {product} version to mirror.
41
39
42
40
. Mirror the resources specified in the `ImageSetConfiguration.yaml` 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`.
50
+
`<mirror_config_directory>` :: Enter the location of your image set configuration file on your system, for example, `.user`.
53
51
54
-
`<mirror_configuration_file>` :: Specifies the name of your mirror configuration yaml file, for example, `mirror-config.yaml`
55
-
56
-
`<mirror_archive_directory>` :: Specifies the location of your directory where the mirror archive will be created, for example, `pass:[file://.user]`.
52
+
`<mirror_archive_directory>` :: Enter the location of your directory where the mirror archive will be created, for example, `pass:[file://.user]`.
57
53
--
58
54
+
59
55
[NOTE]
60
56
====
61
57
Running the `oc-mirror` command generates a local workspace containing the mirror archive file, the Helm chart, and a `ImageContentSourcePolicy` (ICSP) manifest. The ICSP manifest contains an `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`.
83
+
`<mirror_archive_file>` :: Enter the name of the file containing the resources that you want to mirror, for example,`mirror_seq1_0000.tar`.
87
84
88
-
`<target_registry>` :: Specifies the name of the target registry that you want to push the mirrored images to, for example, `docker://registry.localhost:5000`.
85
+
`<target_registry>` :: Enter the name of the target registry that you want to push the mirrored images to, for example, `docker://registry.localhost:5000`.
`<workspace-directory>` :: Specifies the name of your workspace directory, for example, `oc-mirror-workspace`.
121
+
`<workspace-directory>` :: Enter the name of your workspace directory, for example, `oc-mirror-workspace`.
125
122
126
-
`<results-directory>` :: Specifies the name of your results directory, for example, `results-1738070846`.
123
+
`<results-directory>` :: Enter the name of your results directory, for example, `results-1738070846`.
127
124
--
128
125
. In your air-gapped environment, deploy the Helm chart to the namespace that you want to use by running the `helm install` command with `namespace` and `set` options. For example:
`<rhdh_instance>` :: Specifies the name of your {product} instance, for example, `my-rhdh`.
138
+
`<rhdh_instance>` :: Enter the name of your {product} instance, for example, `{my-product-namespace}`.
142
139
143
-
`<workspace_directory>` :: Specifies the name of your workspace directory, for example, `oc-mirror-workspace`.
140
+
`<workspace_directory>` :: Enter the name of your workspace directory, for example, `oc-mirror-workspace`.
144
141
145
-
`<results_directory>` :: Specifies the name of your results directory, for example, `results-1738070846`.
142
+
`<results_directory>` :: Enter the name of your results directory, for example, `results-1738070846`.
146
143
147
-
`<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`.
144
+
`<archive_file>` :: Enter the name of the archive file containing the resources that you want to mirror, for example, `redhat-developer-hub-1.4.1.tgz`.
148
145
149
-
`<your_namespace>` :: Specifies the namespace that you want to deploy the Helm chart to, for example, `{my-product-namespace}`.
146
+
`<your_namespace>` :: Enter the namespace that you want to deploy the Helm chart to, for example, `{my-product-namespace}`.
Copy file name to clipboardExpand all lines: modules/installation/proc-install-rhdh-helm-airgapped-partial.adoc
+7-10Lines changed: 7 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ If your network has access to the `registry.redhat.io` registry and the `charts.
11
11
* 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 {ocp-docs-link}/html-single/registry/index#securing-exposing-registry[Exposing the registry].
12
12
* You are logged in to your target mirror registry and have permissions to push images to it. For more information, see {ocp-docs-link}/html-single/disconnected_environments/index#installation-adding-registry-pull-secret_about-installing-oc-mirror-v2[Configuring credentials that allow images to be mirrored].
13
13
* You have installed the {openshift-cli} on your workstation.
14
-
* {ocp-docs-link}/html-single/disconnected_environments/index#about-installing-oc-mirror-v2[You have installed the oc-mirror OpenShift CLI plugin].
14
+
* Recommended on {ocp-short}: You have installed the {ocp-docs-link}/html-single/disconnected_environments/index#installation-oc-mirror-installing-plugin_about-installing-oc-mirror-v2[`oc-mirror`] tool, with a version corresponding to the version of your {ocp-short} cluster.
15
15
* You have an account in https://developers.redhat.com/[{rhdeveloper-name}] portal.
16
16
* Make sure that your system meets the minimum sizing requirements. See {about-book-link}#rhdh-sizing_about-rhdh[Sizing requirements for {product}].
Copy file name to clipboardExpand all lines: modules/installation/proc-install-rhdh-operator-airgapped-full.adoc
+17-14Lines changed: 17 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,27 +15,29 @@ If your network has access to the registry through a bastion host, you can use t
15
15
* You have installed `umoci` CLI tool.
16
16
* You have an active `oc registry`, `podman`, or `skopeo` session to the `registry.redhat.io`{company-name} Ecosystem Catalog. For more information, see link:link:https://access.redhat.com/articles/RegistryAuthentication[{company-name} Container Registry Authentication].
17
17
* You have installed the `opm` CLI tool. For more information, see {ocp-docs-link}/html/cli_tools/opm-cli#olm-about-opm_cli-opm-install[Installing the opm CLI].
18
+
* Recommended on {ocp-short}: You have installed the {ocp-docs-link}/html-single/disconnected_environments/index#installation-oc-mirror-installing-plugin_about-installing-oc-mirror-v2[`oc-mirror`] tool, with a version corresponding to the version of your {ocp-short} cluster.
18
19
* Make sure that your system meets the minimum sizing requirements. See {about-book-link}#rhdh-sizing_about-rhdh[Sizing requirements for {product}].
19
20
20
21
.Procedure
21
22
. Download the mirroring script to disk by running the following command:
. Run the mirroring script by using the `bash` command with the appropriate set of options:
29
30
+
30
-
[source,terminal,subs="attributes+"]
31
+
[source,terminal,subs="+attributes,+quotes"]
31
32
----
32
33
bash prepare-restricted-environment.sh
33
34
--filter-versions "{product-version}"
34
-
--to-dir _<my_pulled_image_location>_ <1>
35
-
[--use-oc-mirror true] <2>
35
+
--to-dir _<my_pulled_image_location>_
36
+
[--use-oc-mirror true]
36
37
----
37
-
<1> Specifies the absolute path to a directory where you want to pull all of the necessary images with the `--to-dir` option, for example, `/home/user/rhdh-operator-mirror-dir`.
38
-
<2> (Optional) Uses the `oc-mirror`{ocp-short} CLI plugin to mirror images.
38
+
where:
39
+
`--to-dir _<my_pulled_image_location>_`:: Enter the absolute path to a directory where you want to pull all of the necessary images, for example, `/home/user/rhdh-operator-mirror-dir`.
40
+
`--use-oc-mirror true`:: (Recommended on {ocp-short}) Use the `oc-mirror`{ocp-short} CLI plugin to mirror images.
39
41
+
40
42
[NOTE]
41
43
====
@@ -47,15 +49,16 @@ The script can take several minutes to complete as it copies multiple images to
47
49
+
48
50
[source,terminal,subs="+quotes,+attributes"]
49
51
----
50
-
bash _<my_pulled_image_location>_/install.sh <1>
51
-
--from-dir _<my_pulled_image_location>_ <2>
52
-
[--to-registry _<my.registry.example.com>_] <3>
53
-
[--use-oc-mirror true] <4>
52
+
bash _<my_pulled_image_location>_/install.sh
53
+
--from-dir _<my_pulled_image_location>_
54
+
[--to-registry _<my.registry.example.com>_]
55
+
[--use-oc-mirror true]
54
56
----
55
-
<1> The downloaded image and the absolute path to the directory where it is stored on your system.
56
-
<2> Specifies the directory where you want to pull all of the necessary images with the `--to-dir` option.
57
-
<3> Specifies the URL for the target mirror registry where you want to mirror the images.
58
-
<4> (Optional) Uses the `oc-mirror`{ocp-short} CLI plugin to mirror images.
57
+
where:
58
+
`_<my_pulled_image_location>_/install.sh`:: Enter the downloaded installation script and the absolute path to the directory where it is stored on your system.
59
+
`--from-dir _<my_pulled_image_location>_`:: Enter the directory where you want to pull all of the necessary images.
60
+
`--to-registry`:: (Optional) Enter the URL for the target mirror registry where you want to mirror the images.
61
+
`--use-oc-mirror true`:: Recommended on {ocp-short}: Use the `oc-mirror`{ocp-short} CLI plugin to mirror images.
0 commit comments