Skip to content

Commit c6d8b2d

Browse files
committed
Add new file for pulling images
1 parent 1fde9cb commit c6d8b2d

4 files changed

+49
-5
lines changed

edge_computing/ztp-updating-gitops.adoc

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ 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+
3739
[role="_additional-resources"]
3840
.Additional resources
3941

modules/ztp-installing-the-new-gitops-ztp-applications.adoc

-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88

99
Using the extracted `argocd/deployment` directory, and after ensuring that the applications point to your site Git repository, apply the full contents of the deployment directory. Applying the full contents of the directory ensures that all necessary resources for the applications are correctly configured.
1010

11-
.Prerequisites
12-
13-
* You have enabled the assisted service.
14-
1511
.Procedure
1612

1713
include::snippets/ztp-patch-argocd-hub-cluster.adoc[]

modules/ztp-pulling-ocp-images.adoc

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

modules/ztp-updating-gitops-ztp.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +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 the assisted service to pull ISO images of a newer {product-title} version.
26+
. Enable pulling the ISO images for the desired {product-title} version.
2727

2828
. Update and restart the application configuration.

0 commit comments

Comments
 (0)