-
Notifications
You must be signed in to change notification settings - Fork 103
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
https://issues.redhat.com/browse/ACM-16145--pm request for disconnect… (delayed) #7480
base: 2.12_stage
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,24 @@ | ||
[#specify-registry-img-on-managed-clusters-for-import] | ||
= Specifying image registry on managed clusters for import | ||
|
||
You might need to override the image registry on the managed clusters that you are importing. You can do this by creating a `ManagedClusterImageRegistry` custom resource definition. | ||
You might need to override the image registry on the managed clusters that you are importing by creating a `ManagedClusterImageRegistry` custom resource definition. The `ManagedClusterImageRegistry` custom resource definition specifies a set of managed clusters for a `placement` to select, but needs different images from the custom image registry. | ||
|
||
The `ManagedClusterImageRegistry` custom resource definition is a namespace-scoped resource. | ||
{acm-short} retrieves {ocp-short} `ClusterImageSets` from a GitHub repository that is managed by Red Hat. These `ClusterImageSets` define {ocp-short} versions that can be deployed. | ||
|
||
The `ManagedClusterImageRegistry` custom resource definition specifies a set of managed clusters for a Placement to select, but needs different images from the custom image registry. After the managed clusters are updated with the new images, the following label is added to each managed cluster for identification: `open-cluster-management.io/image-registry=<namespace>.<managedClusterImageRegistryName>`. | ||
*Important:* You might need to obtain _ClusterImageSets_ without access to GitHub. | ||
|
||
The following example shows a `ManagedClusterImageRegistry` custom resource definition: | ||
+ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Content added here that we can go over. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The full steps and details for adding a ManagedClusterIMageRegistry are here: https://docs.redhat.com/en/documentation/red_hat_advanced_cluster_management_for_kubernetes/2.12/html/clusters/cluster_mce_overview#specify-registry-img-on-managed-clusters-for-import ... so can we just advise them to review that directly? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In the template, I look at step 4 and that's how I know what needs to be added: https://issues.redhat.com/browse/ACM-16145 Are we saying we don't need the content that I added--just the link? Since we are pretty swamped right now, I need to table this to work on some other items and will wait for response. |
||
If you cannot access the repository that you need to specify an image registry because you are not connected to the Internet, or because of policy settings, you might need to take additional steps to access a _mirrored_ or _internal_ repository. See xref:../cluster_lifecycle/release_image_disconn.adoc#release-images-disconnected[Maintaining a custom list of release images while disconnected] for that procedure. | ||
|
||
* <<config-managedclusterimageregistry,Configure the _ManagedClusterImageRegistry_>> | ||
* <<import-cluster-managedclusterimageregistry,Importing a cluster that has a _ManagedClusterImageRegistry_>> | ||
|
||
[#config-managedclusterimageregistry] | ||
== Configure the _ManagedClusterImageRegistry_ | ||
|
||
The `ManagedClusterImageRegistry` custom resource definition is a namespace-scoped resource. After the managed clusters are updated with the new images, the following label is added to each managed cluster for identification: `open-cluster-management.io/image-registry=<namespace>.<managedClusterImageRegistryName>`. | ||
|
||
The following example shows a `ManagedClusterImageRegistry` custom resource definition with `placementRef` specifications: | ||
|
||
[source,yaml] | ||
---- | ||
|
@@ -29,7 +40,7 @@ spec: | |
- mirror: <mirrored-image-registry-address> | ||
source: <image-registry-address> | ||
---- | ||
<1> Replace with the name of a Placement in the same namespace that selects a set of managed clusters. | ||
<1> Replace with the name of a `placement` in the same namespace that selects a set of managed clusters. | ||
<2> Replace with the name of the pull secret that is used to pull images from the custom image registry. | ||
<3> List the values for each of the `source` and `mirror` registries. Replace the `mirrored-image-registry-address` and `image-registry-address` with the value for each of the `mirror` and `source` values of the registries. | ||
|
||
|
@@ -89,7 +100,7 @@ $ kubectl create secret docker-registry myPullSecret \ | |
--docker-password=<my-password> | ||
---- | ||
|
||
. Create a Placement in the namespace that you created. | ||
. Create a `placement` in the namespace that you created. | ||
+ | ||
[source,yaml] | ||
---- | ||
|
@@ -106,7 +117,7 @@ spec: | |
operator: Exists | ||
---- | ||
+ | ||
*Note:* The `unreachable` toleration is required for the Placement to be able to select the cluster. | ||
*Note:* The `unreachable` toleration is required for the `placement` to be able to select the cluster. | ||
|
||
. Create a `ManagedClusterSet` resource and bind it to your namespace. | ||
+ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed the name and all links to reflect how the rest of the files are named so I don't have to keep hunting for it!