Skip to content

Commit 6765c6e

Browse files
committed
1 parent 6bfb9a3 commit 6765c6e

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

mce_acm_integration/main.adoc

+1
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ include::siteconfig/siteconfig_deprovision_clusters.adoc[leveloffset=+2]
1717
include::siteconfig/siteconfig_create_custom_templates.adoc[leveloffset=+2]
1818
include::siteconfig/siteconfig_scale_in_worker_nodes.adoc[leveloffset=+2]
1919
include::siteconfig/siteconfig_scale_out_worker_nodes.adoc[leveloffset=+2]
20+
include::siteconfig/siteconfig_mirror_images_disconnected.adoc[leveloffset=+2]

mce_acm_integration/siteconfig/siteconfig_intro.adoc

+1
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ For advanced topics, see the following documentation:
1717

1818
* xref:../siteconfig/siteconfig_scale_in_worker_nodes.adoc#scale-in-worker-nodes[Scaling in worker nodes with the {sco}]
1919
* xref:../siteconfig/siteconfig_scale_out_worker_nodes.adoc#scale-in-worker-nodes[Scaling out worker nodes with the {sco}]
20+
* xref:../siteconfig/siteconfig_mirror_images_disconnected.adoc#mirror_images_disconnected[Mirroring images for disconnected environments]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
[#mirror-images-disconnected]
2+
= Mirroring images for disconnected environments
3+
4+
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.
5+
6+
*Required access:* Cluster administrator
7+
8+
Complete the following steps to mirror images for disconnected environments:
9+
10+
. Create a YAML file named `idms-configmap.yaml` for your `ImageDigestMirrorSet` object that contains your mirror registry locations:
11+
12+
+
13+
[source,yaml]
14+
----
15+
kind: ConfigMap
16+
apiVersion: v1
17+
metadata:
18+
name: "idms-configmap"
19+
namespace: "example-sno"
20+
data:
21+
99-example-idms.yaml: |
22+
apiVersion: config.openshift.io/v1
23+
kind: ImageDigestMirrorSet
24+
metadata:
25+
name: example-idms
26+
spec:
27+
imageDigestMirrors:
28+
- mirrors:
29+
- mirror.registry.example.com/image-repo/image
30+
source: registry.example.com/image-repo/image
31+
----
32+
33+
**Important:** Define the `ConfigMap` resource that contains the extra manifest in the same namespace as the `ClusterInstance` resource.
34+
35+
. Create the resource by running the following command on the hub cluster:
36+
37+
+
38+
[source,terminal]
39+
----
40+
oc apply -f idms-configmap.yaml
41+
----
42+
43+
. Reference your `ImageDigestMirrorSet` object in the `ClusterInstance` custom resource:
44+
45+
+
46+
[source,yaml]
47+
----
48+
apiVersion: siteconfig.open-cluster-management.io/v1alpha1
49+
kind: ClusterInstance
50+
metadata:
51+
name: "example-sno"
52+
namespace: "example-sno"
53+
spec:
54+
...
55+
extraManifestsRefs:
56+
- name: idms-configmap
57+
...
58+
----

0 commit comments

Comments
 (0)