Prerequisites to install by using YAML

Last published : Jun 12, 2026
  1. Run the following commands to set the environment variable.
    export LOCAL_REGISTRY=<local_registry_host_name>:
                                        <local_registry_host_port>
    export REG_CREDS=${XDG_RUNTIME_DIR}/containers/auth.json
    export ARCHITECTURE='<platform>/<architecture>'
     \# Where ARCHITECTURE can be linux/amd64,
     \# linux/ppc64le, linux/s390x
    export VTAG=<ocp release> # eg: v4.9, v4.10
    1. Perform the following steps on the mirror host node to mirror the Red Hat operator - nfd.
      • Authenticate your local registry and registry.redhat.io.
    podman login registry.redhat.io
    podman login ${LOCAL_REGISTRY}
  • To mirror nfd operator only, run the following command to prune the source index
    opm index prune \
    -f registry.redhat.io/redhat/redhat-operator-index
    :${VTAG} \
      -p nfd -t ${LOCAL_REGISTRY}/catalog/redhat-operator:${VTAG}
    -  Run the following command to push the operator index images to your local registry.
    podman push ${LOCAL_REGISTRY}/catalog/redhat-operator:${VTAG}
  • Run the following command to mirror the operators. mkdir ~/mirror-operator cd ~/mirror-operator oc adm catalog mirror --index-filter-by-os=${ARCHITECTURE} -a ${REG_CREDS} ${LOCAL_REGISTRY}/catalog/redhat-operator: ${VTAG} ${LOCAL_REGISTRY}/operators
    • Run the following command to push the operator index images to your local registry. podman push ${LOCAL_REGISTRY}/catalog/redhat-operator:${VTAG}
  • Run the following command to mirror the operators. oc adm catalog mirror --index-filter-by-os=${ARCHITECTURE} -a ${REG_CREDS} ${LOCAL_REGISTRY}/catalog/redhat-operator:${VTAG} ${LOCAL_REGISTRY}/operators
    • Inspect the manifests directory that is generated in your current directory. The manifest directory format is manifests-\<index_image_name\>-\<random_number\>
  • Run the following command to customize mapping.txt with the local pull secret. oc image mirror -f
    1.  Perform the following steps on the bastion node.

        -  Copy manifests directories from mirror host to bastion node.

    ```txt
    scp -r \<IP address of the mirror node\>:~/mirror ~/