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
+10-21Lines changed: 10 additions & 21 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 through a bastion host, you can use t
11
11
** You have an account in https://developers.redhat.com/[{rhdeveloper-name}] portal.
12
12
** You have access to the charts.openshift.io Helm chart repository.
13
13
** You have installed the {openshift-cli} on your workstation.
14
-
** 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.
14
+
** You have installed the `oc-mirror` OpenShift CLI (oc) plugin *v2*. For more information, see {ocp-docs-link}/html-single/disconnected_environments/index#installation-oc-mirror-installing-plugin_about-installing-oc-mirror-v2[Installing the oc-mirror OpenShift CLI plugin].
15
15
* You have set up your intermediary host.
16
16
** Your host has access to the {rhcr-long}.
17
17
** Your host has access to image registry on the destination host.
@@ -25,7 +25,7 @@ See {ocp-docs-link}/html-single/registry/index#securing-exposing-registry[Exposi
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.
59
+
Running the `oc-mirror` command generates a local workspace containing the mirror archive file, the Helm chart, `ImageDigestMirrorSet` (IDMS) and `ImageTagMirrorSet` (ITMS) manifests. The IDMS and ITMS manifests contain files that you must apply against the cluster in a later step.
`<target_registry>` :: Enter the name of the target registry that you want to push the mirrored images to, for example, `docker://registry.localhost:5000`.
88
88
--
89
89
+
90
-
.Example output
91
-
[source,terminal,subs="+quotes"]
92
-
----
93
-
Wrote release signatures to oc-mirror-workspace/results-1738075410
94
-
Writing image mapping to oc-mirror-workspace/results-1738075410/mapping.txt
95
-
Writing ICSP manifests to oc-mirror-workspace/results-1738075410
96
-
----
97
-
+
98
-
. In your workspace, locate the `imageContentSourcePolicy.yaml` file by running the `ls` command. For example:
90
+
. In your workspace, locate the IDMS and ITMS files by running the following command. For example:
99
91
+
100
92
[source,terminal,subs="+quotes"]
101
93
----
102
-
ls _<workspace_directory>_/_<results_directory>_
94
+
ls _<workspace_directory>/working-dir/cluster-resources/_
103
95
----
104
96
+
105
97
--
@@ -110,11 +102,11 @@ where:
110
102
`<results_directory>` :: Specifies the name of your results directory, for example, `results-1738070846`.
111
103
--
112
104
+
113
-
. To mirror the Helm chart, deploy the `imageContentSourcePolicy.yaml` file in the disconnected cluster by running the `oc apply` command. For example:
105
+
. To mirror the Helm chart, deploy the IDMS and ITMS files in the disconnected cluster by running the `oc apply` command. For example:
Copy file name to clipboardExpand all lines: modules/installation/proc-install-rhdh-helm-airgapped-partial.adoc
+9-17Lines changed: 9 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ If your network has access to the `registry.redhat.io` registry and the `charts.
13
13
* 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].
14
14
* 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].
15
15
* You have installed the {openshift-cli} on your workstation.
16
-
* 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.
16
+
* Recommended on {ocp-short}: You have installed the `oc-mirror` OpenShift CLI (oc) plugin *v2*. For more information, see {ocp-docs-link}/html-single/disconnected_environments/index#installation-oc-mirror-installing-plugin_about-installing-oc-mirror-v2[Installing the oc-mirror OpenShift CLI plugin].
17
17
* You have an account in https://developers.redhat.com/[{rhdeveloper-name}] portal.
18
18
* Make sure that your system meets the minimum sizing requirements. See {about-book-link}#rhdh-sizing_about-rhdh[Sizing requirements for {product}].
. From your disconnected cluster, log in to the image registry that you want to mirror, for example, the {ocp-short} image registry.
29
-
. Create an `ImageSetConfiguration.yaml` file.
30
-
. In your `ImageSetConfiguration.yaml` file, specify the resources that you want to mirror. For example:
29
+
. Create an `ImageSetConfiguration.yaml` file to specify the resources that you want to mirror. For example:
31
30
+
32
31
[source,yaml,subs="+attributes,+quotes"]
33
32
----
34
-
apiVersion: mirror.openshift.io/v1alpha2
33
+
apiVersion: mirror.openshift.io/v2alpha1
35
34
kind: ImageSetConfiguration
36
35
mirror:
37
36
helm:
@@ -64,18 +63,11 @@ where:
64
63
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.
65
64
====
66
65
+
67
-
.Example output
68
-
[source,terminal,subs="+quotes"]
69
-
----
70
-
Writing image mapping to oc-mirror-workspace/results-1738070846/mapping.txt
71
-
Writing ICSP manifests to oc-mirror-workspace/results-1738070846
72
-
----
73
-
+
74
-
. In your workspace, locate the `imageContentSourcePolicy.yaml` file by running the `ls` command. For example:
66
+
. In your workspace, locate the `ImageDigestMirrorSet` (IDMS) and `ImageTagMirrorSet` (ITMS) files by running the `ls` command. For example:
75
67
+
76
68
[source,terminal,subs="+quotes"]
77
69
----
78
-
ls _<workspace_directory>_/_<results_directory>_
70
+
ls _<workspace_directory>/working-dir/cluster-resources/_
79
71
----
80
72
+
81
73
--
@@ -86,19 +78,19 @@ where:
86
78
`<results_directory>` :: Specifies the name of your results directory, for example, `results-1738070846`.
87
79
--
88
80
+
89
-
. To mirror the Helm chart, deploy the `imageContentSourcePolicy.yaml` file in the disconnected cluster by running the `oc apply` command. For example:
81
+
. To configure image mirroring, deploy the IDMS and ITMS files 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`.
91
+
`<workspace_directory>` :: Enter the name of your workspace directory, for example, `oc-mirror-workspace`.
100
92
101
-
`<results_directory>` :: Specifies the name of your results directory, for example, `results-1738070846`.
93
+
`<results_directory>` :: Enter the name of your results directory, for example, `results-1738070846`.
102
94
--
103
95
. 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:
0 commit comments