Skip to content

Commit 88dd62d

Browse files
Merge pull request #55448 from skopacz1/4744_main
OSDOCS-4744: creating a discrete updating page for mirroring content
2 parents db136e6 + 6d5ff45 commit 88dd62d

28 files changed

+261
-290
lines changed

_topic_maps/_topic_map.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -587,15 +587,17 @@ Topics:
587587
- Name: Updating a cluster that includes RHEL compute machines
588588
File: updating-cluster-rhel-compute
589589
Distros: openshift-enterprise
590-
- Name: Updating a disconnected environment
590+
- Name: Updating a cluster in a disconnected environment
591591
Dir: updating-restricted-network-cluster
592592
Distros: openshift-enterprise
593593
Topics:
594-
- Name: About disconnected environment updates
594+
- Name: About cluster updates in a disconnected environment
595595
File: index
596-
- Name: Updating disconnected environments using OSUS
596+
- Name: Mirroring the OpenShift Container Platform image repository
597+
File: mirroring-image-repository
598+
- Name: Updating a cluster in a disconnected environment using OSUS
597599
File: restricted-network-update-osus
598-
- Name: Updating disconnected environments without OSUS
600+
- Name: Updating a cluster in a disconnected environment without OSUS
599601
File: restricted-network-update
600602
- Name: Updating hardware on nodes running on vSphere
601603
File: updating-hardware-on-nodes-running-on-vsphere

installing/disconnected_install/installing-mirroring-disconnected.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,9 @@ include::modules/oc-mirror-image-set-config-examples.adoc[leveloffset=+1]
140140

141141
// Command reference for oc-mirror
142142
include::modules/oc-mirror-command-reference.adoc[leveloffset=+1]
143+
144+
[role="_additional-resources"]
145+
[id="additional-resources_installing-mirroring-disconnected"]
146+
== Additional resources
147+
148+
* xref:../../updating/updating-restricted-network-cluster/index.adoc#about-restricted-network-updates[About cluster updates in a disconnected environment]

modules/cli-installing-cli.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@
4848
// * openshift_images/samples-operator-alt-registry.adoc
4949
// * installing/installing_rhv/installing-rhv-customizations.adoc
5050
// * installing/installing_rhv/installing-rhv-default.adoc
51-
// * updating/updating-restricted-network-cluster/restricted-network-update.adoc
51+
// * updating/updating-restricted-network-cluster/mirroring-image-repository.adoc
5252
// * microshift_cli_ref/microshift-oc-cli-install.adoc
5353
// * updating/updating-restricted-network-cluster.adoc
5454
// * installing/installing-nutanix-installer-provisioned.adoc
5555
// * installing/installing-restricted-networks-nutanix-installer-provisioned.adoc
5656
// AMQ docs link to this; do not change anchor
5757

58-
ifeval::["{context}" == "updating-restricted-network-cluster"]
58+
ifeval::["{context}" == "mirroring-ocp-image-repository"]
5959
:restricted:
6060
endif::[]
6161

@@ -200,6 +200,6 @@ After you install the OpenShift CLI, it is available using the `oc` command:
200200
$ oc <command>
201201
----
202202

203-
ifeval::["{context}" == "updating-restricted-network-cluster"]
203+
ifeval::["{context}" == "mirroring-ocp-image-repository"]
204204
:!restricted:
205205
endif::[]

modules/installation-about-mirror-registry.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@
33
// * installing/disconnected_install/installing-mirroring-installation-images.adoc
44
// * openshift_images/samples-operator-alt-registry.adoc
55
// * scalability_and_performance/ztp-deploying-disconnected.adoc
6+
// * updating/updating-restricted-network-cluster/mirroring-image-repository.adoc
67

78
ifeval::["{context}" == "installing-mirroring-disconnected"]
89
:oc-mirror:
910
endif::[]
1011

12+
ifeval::["{context}" == "mirroring-ocp-image-repository"]
13+
:oc-mirror:
14+
endif::[]
15+
1116
:_content-type: CONCEPT
1217
[id="installation-about-mirror-registry_{context}"]
1318
= About the mirror registry
@@ -42,3 +47,7 @@ Red Hat does not test third party registries with {product-title}.
4247
ifeval::["{context}" == "installing-mirroring-disconnected"]
4348
:!oc-mirror:
4449
endif::[]
50+
51+
ifeval::["{context}" == "mirroring-ocp-image-repository"]
52+
:!oc-mirror:
53+
endif::[]

modules/installation-adding-registry-pull-secret.adoc

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
// * installing/disconnected_install/installing-mirroring-disconnected.adoc
55
// * openshift_images/samples-operator-alt-registry.adoc
66
// * scalability_and_performance/ztp_far_edge/ztp-deploying-far-edge-clusters-at-scale.adoc
7-
// * updating/updating-restricted-network-cluster/restricted-network-update.adoc
7+
// * updating/updating-restricted-network-cluster/mirroring-image-repository.adoc
88

9-
ifeval::["{context}" == "updating-restricted-network-cluster"]
9+
ifeval::["{context}" == "mirroring-ocp-image-repository"]
1010
:restricted:
11+
:update-oc-mirror:
1112
endif::[]
1213

1314
ifeval::["{context}" == "installing-mirroring-installation-images"]
@@ -62,14 +63,7 @@ ifndef::openshift-origin[]
6263
----
6364
$ cat ./pull-secret | jq . > <path>/<pull_secret_file_in_json> <1>
6465
----
65-
ifndef::oc-mirror[]
6666
<1> Specify the path to the folder to store the pull secret in and a name for the JSON file that you create.
67-
endif::[]
68-
ifdef::oc-mirror[]
69-
<1> Specify the path to the folder to store the pull secret in and a name for the JSON file that you create.
70-
71-
. Save the file either as `~/.docker/config.json` or `$XDG_RUNTIME_DIR/containers/auth.json`.
72-
endif::[]
7367
+
7468
The contents of the file resemble the following example:
7569
+
@@ -96,6 +90,14 @@ The contents of the file resemble the following example:
9690
}
9791
}
9892
----
93+
// An additional step for following this procedure when using oc-mirror as part of the disconnected install process.
94+
ifdef::oc-mirror[]
95+
. Save the file either as `~/.docker/config.json` or `$XDG_RUNTIME_DIR/containers/auth.json`.
96+
endif::[]
97+
// Similar to the additional step above, except it is framed as optional because it is included in a disconnected update page (where users may or may not use oc-mirror for their process)
98+
ifdef::update-oc-mirror[]
99+
. Optional: If using the oc-mirror plugin, save the file either as `~/.docker/config.json` or `$XDG_RUNTIME_DIR/containers/auth.json`.
100+
endif::[]
99101
endif::[]
100102

101103
. Generate the base64-encoded user name and password or token for your mirror registry:
@@ -122,6 +124,7 @@ ifndef::openshift-origin[]
122124
"<mirror_registry>": { <1>
123125
"auth": "<credentials>", <2>
124126
"email": "[email protected]"
127+
}
125128
},
126129
endif::[]
127130
ifdef::openshift-origin[]
@@ -189,8 +192,9 @@ ifeval::["{context}" == "installing-mirroring-installation-images"]
189192
:!restricted:
190193
endif::[]
191194

192-
ifeval::["{context}" == "updating-restricted-network-cluster"]
195+
ifeval::["{context}" == "mirroring-ocp-image-repository"]
193196
:!restricted:
197+
:!update-oc-mirror:
194198
endif::[]
195199

196200
ifeval::["{context}" == "installing-mirroring-disconnected"]

modules/oc-mirror-about.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Module included in the following assemblies:
22
//
33
// * installing/disconnected_install/installing-mirroring-disconnected.adoc
4+
// * updating/updating-restricted-network-cluster/mirroring-image-repository.adoc
45

56
:_content-type: CONCEPT
67
[id="installation-oc-mirror-about_{context}"]
@@ -17,7 +18,7 @@ You can use the oc-mirror OpenShift CLI (`oc`) plugin to mirror all required {pr
1718
1819
When using the oc-mirror plugin, you specify which content to mirror in an image set configuration file. In this YAML file, you can fine-tune the configuration to only include the {product-title} releases and Operators that your cluster needs. This reduces the amount of data that you need to download and transfer. The oc-mirror plugin can also mirror arbitrary helm charts and additional container images to assist users in seamlessly synchronizing their workloads onto mirror registries.
1920

20-
The first time you run the oc-mirror plugin, it populates your mirror registry with the required content to perform your disconnected cluster installation. In order for your disconnected cluster to continue receiving updates, you must keep your mirror registry updated. To update your mirror registry, you run the oc-mirror plugin using the same configuration as the first time you ran it. The oc-mirror plugin references the metadata from the storage backend and only downloads what has been released since the last time you ran the tool. This provides update paths for {product-title} and Operators and performs dependency resolution as required.
21+
The first time you run the oc-mirror plugin, it populates your mirror registry with the required content to perform your disconnected cluster installation or update. In order for your disconnected cluster to continue receiving updates, you must keep your mirror registry updated. To update your mirror registry, you run the oc-mirror plugin using the same configuration as the first time you ran it. The oc-mirror plugin references the metadata from the storage backend and only downloads what has been released since the last time you ran the tool. This provides update paths for {product-title} and Operators and performs dependency resolution as required.
2122

2223
[IMPORTANT]
2324
====

modules/oc-mirror-command-reference.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Module included in the following assemblies:
22
//
33
// * installing/disconnected_install/installing-mirroring-disconnected.adoc
4+
// * updating/updating-restricted-network-cluster/mirroring-image-repository.adoc
45

56
:_content-type: REFERENCE
67
[id="oc-mirror-command-reference_{context}"]

modules/oc-mirror-creating-image-set-config.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Module included in the following assemblies:
22
//
33
// * installing/disconnected_install/installing-mirroring-disconnected.adoc
4+
// * updating/updating-restricted-network-cluster/mirroring-image-repository.adoc
45

56
:_content-type: PROCEDURE
67
[id="oc-mirror-creating-image-set-config_{context}"]

modules/oc-mirror-differential-updates.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Module included in the following assemblies:
22
//
33
// * installing/disconnected_install/installing-mirroring-disconnected.adoc
4+
// * updating/updating-restricted-network-cluster/mirroring-image-repository.adoc
45

56
:_content-type: PROCEDURE
67
[id="oc-mirror-differential-updates_{context}"]

modules/oc-mirror-disk-to-mirror.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Module included in the following assemblies:
22
//
33
// * installing/disconnected_install/installing-mirroring-disconnected.adoc
4+
// * updating/updating-restricted-network-cluster/mirroring-image-repository.adoc
45

56
:_content-type: PROCEDURE
67
[id="oc-mirror-disk-to-mirror_{context}"]

0 commit comments

Comments
 (0)