Skip to content

https://issues.redhat.com/browse/ACM-17812--Document image mirroring with SiteConfig #7791

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mce_acm_integration/main.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ include::siteconfig/siteconfig_deprovision_clusters.adoc[leveloffset=+2]
include::siteconfig/siteconfig_create_custom_templates.adoc[leveloffset=+2]
include::siteconfig/siteconfig_scale_in_worker_nodes.adoc[leveloffset=+2]
include::siteconfig/siteconfig_scale_out_worker_nodes.adoc[leveloffset=+2]
include::siteconfig/siteconfig_mirror_images_disconnected.adoc[leveloffset=+2]
1 change: 1 addition & 0 deletions mce_acm_integration/siteconfig/siteconfig_intro.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ For advanced topics, see the following documentation:

* xref:../siteconfig/siteconfig_scale_in_worker_nodes.adoc#scale-in-worker-nodes[Scaling in worker nodes with the {sco}]
* xref:../siteconfig/siteconfig_scale_out_worker_nodes.adoc#scale-in-worker-nodes[Scaling out worker nodes with the {sco}]
* xref:../siteconfig/siteconfig_mirror_images_disconnected.adoc#mirror_images_disconnected[Mirroring images for disconnected environments]
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
[#mirror-images-disconnected]
= Mirroring images for disconnected environments

You can deploy a cluster with the SiteConfig operator by using the Image Based Install Operator as your underlying operator. If you deploy your clusters with the Image Based Install Operator in a disconnected environment, you must supply your mirror images as extra manifests in the `ClusterInstance` custom resource.

*Required access:* Cluster administrator

Complete the following steps to mirror images for disconnected environments:

. Create a YAML file named `idms-configmap.yaml` for your `ImageDigestMirrorSet` object that contains your mirror registry locations:

+
[source,yaml]
----
kind: ConfigMap
apiVersion: v1
metadata:
name: "idms-configmap"
namespace: "example-sno"
data:
99-example-idms.yaml: |
apiVersion: config.openshift.io/v1
kind: ImageDigestMirrorSet
metadata:
name: example-idms
spec:
imageDigestMirrors:
- mirrors:
- mirror.registry.example.com/image-repo/image
source: registry.example.com/image-repo/image
----

*Important:* Define the `ConfigMap` resource that contains the extra manifest in the same namespace as the `ClusterInstance` resource.

. Create the resource by running the following command on the hub cluster:

+
[source,terminal]
----
oc apply -f idms-configmap.yaml
----

. Reference your `ImageDigestMirrorSet` object in the `ClusterInstance` custom resource:

+
[source,yaml]
----
apiVersion: siteconfig.open-cluster-management.io/v1alpha1
kind: ClusterInstance
metadata:
name: "example-sno"
namespace: "example-sno"
spec:
...
extraManifestsRefs:
- name: idms-configmap
...
----