Skip to content

Commit d481663

Browse files
committed
TELCODOCS-2166#Clarify the GitOps ZTP update process in Edge Computing
1 parent 32e5c87 commit d481663

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed

edge_computing/ztp-updating-gitops.adoc

+7
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ include::modules/ztp-required-changes-to-the-git-repository.adoc[leveloffset=+1]
3434

3535
include::modules/ztp-installing-the-new-gitops-ztp-applications.adoc[leveloffset=+1]
3636

37+
include::modules/ztp-pulling-ocp-images.adoc[leveloffset=+1]
38+
39+
[role="_additional-resources"]
40+
.Additional resources
41+
42+
* For information about enabling the assisted service, see xref:../edge_computing/ztp-preparing-the-hub-cluster.adoc#enabling-assisted-installer-service-on-bare-metal_ztp-preparing-the-hub-cluster[Enabling the assisted service].
43+
3744
include::modules/ztp-roll-out-the-configuration-changes.adoc[leveloffset=+1]
3845

3946
[role="_additional-resources"]

modules/ztp-pulling-ocp-images.adoc

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * scalability_and_performance/ztp_far_edge/ztp-updating-gitops-ztp.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="ztp-pulling-ocp-images_{context}"]
7+
= Enabling pulling ISO images for the desired {product-title} version
8+
9+
To pull ISO images for the desired {product-title} version, update the `AgentServiceConfig` custom resource (CR) with references to the desired ISO and RootFS images that are hosted on the mirror registry HTTP server.
10+
11+
.Prerequisites
12+
13+
* You have installed the OpenShift CLI (`oc`).
14+
15+
* You have logged in to the hub cluster as a user with `cluster-admin` privileges.
16+
17+
* You have {rh-rhacm} with MultiClusterHub enabled.
18+
19+
* You have enabled the assisted service.
20+
21+
.Procedure
22+
23+
. Update the `AgentServiceConfig` CR by running the following command:
24+
+
25+
[source,terminal]
26+
----
27+
$ oc edit AgentServiceConfig
28+
----
29+
30+
. Add the following entry to the `items.spec.osImages` field in the CR:
31+
+
32+
[source,yaml,subs="attributes+"]
33+
----
34+
- cpuArchitecture: x86_64
35+
openshiftVersion: "{product-version}"
36+
rootFSUrl: https://<host>/<path>/rhcos-live-rootfs.x86_64.img
37+
url: https://<host>/<path>/rhcos-live.x86_64.iso
38+
----
39+
+
40+
where:
41+
+
42+
--
43+
<host> :: Is the fully qualified domain name (FQDN) for the target mirror registry HTTP server.
44+
<path> :: Is the path to the image on the target mirror registry.
45+
--
46+
+
47+
Save and quit the editor to apply the changes.

modules/ztp-updating-gitops-ztp.adoc

+2
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ At a high level, the strategy for updating the {ztp} infrastructure is as follow
2323

2424
. Update required content and optional changes in the Git repository.
2525

26+
. Enable pulling the ISO images for the desired {product-title} version.
27+
2628
. Update and restart the application configuration.

0 commit comments

Comments
 (0)