1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/ztp-pulling-ocp-images.adoc

54 lines
1.5 KiB
Plaintext

// Module included in the following assemblies:
//
// * scalability_and_performance/ztp_far_edge/ztp-updating-gitops-ztp.adoc
:_mod-docs-content-type: PROCEDURE
[id="ztp-pulling-ocp-images_{context}"]
= Pulling ISO images for the desired {product-title} version
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.
.Prerequisites
* You have installed the {oc-first}.
* You have logged in to the hub cluster as a user with `cluster-admin` privileges.
* You have {rh-rhacm} with `MultiClusterHub` enabled.
* You have enabled the assisted service.
.Procedure
. Open the `AgentServiceConfig` CR to update the `spec.osImages` field by running the following command:
+
[source,terminal]
----
$ oc edit AgentServiceConfig
----
. Update the `spec.osImages` field in the `AgentServiceConfig` CR:
+
[source,yaml,subs="attributes+"]
----
apiVersion: agent-install.openshift.io/v1beta1
kind: AgentServiceConfig
metadata:
name: agent
spec:
# ...
osImages:
- cpuArchitecture: x86_64
openshiftVersion: "{product-version}"
rootFSUrl: https://<host>/<path>/rhcos-live-rootfs.x86_64.img
url: https://<host>/<path>/rhcos-live.x86_64.iso
----
+
where:
+
--
`<host>` :: Specifies the fully qualified domain name (FQDN) for the target mirror registry HTTP server.
`<path>` :: Specifies the path to the image on the target mirror registry.
--
. Save and quit the editor to apply the changes.