-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Cherry-pick 09396a manually Signed-off-by: clyang82 <[email protected]> * Correct README.md Signed-off-by: clyang82 <[email protected]> --------- Signed-off-by: clyang82 <[email protected]>
- Loading branch information
Showing
6 changed files
with
358 additions
and
271 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,45 @@ | ||
### Create a regional hub cluster (dev preview) | ||
Refer to the original [Create cluster](https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.6/html/multicluster_engine/multicluster_engine_overview#creating-a-cluster) document to create the managed cluster in the global hub cluster. add labels of `global-hub.open-cluster-management.io/hub-cluster-install: ''` in managedcluster CR and then the new created managed cluster can be switched to be a regional hub cluster automatically. In other words, the latest released RHACM is installed in this managed cluster. You can get the ACM hub information in the cluster overview page. | ||
### Create a regional hub cluster (Developer Preview) | ||
Refer to the original [Create cluster](https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.8/html/clusters/cluster_mce_overview#creating-a-cluster) document to create the managed cluster in the global hub cluster. Add the label of `global-hub.open-cluster-management.io/hub-cluster-install: ''` to the `managedcluster` custom resource and then the new created managed cluster can automatically be switched to be a regional hub cluster. In other words, the latest version of Red Hat Advanced Cluster Management for Kubernetes is installed in this managed cluster. You can get the Red Hat Advanced Cluster Management hub information in the cluster overview page. | ||
|
||
![cluster overview](cluster_overview.png) | ||
### Import a regional hub cluster in hosted mode (dev preview) | ||
It does not require any changes before importing it. The ACM agent is running in a hosting cluster. | ||
1. Import the cluster from the ACM console, add these annotations to the managedCluster, use the kubeconfig import mode, and disable all add-ons. | ||
``` | ||
import.open-cluster-management.io/klusterlet-deploy-mode: Hosted | ||
import.open-cluster-management.io/hosting-cluster-name: local-cluster | ||
addon.open-cluster-management.io/disable-automatic-installation: "true" | ||
``` | ||
![import hosted cluster](import_hosted_cluster.png) | ||
Click `Next` Button to complete the import process. | ||
|
||
2. Enable work-manager addon after the imported cluster is available. | ||
``` | ||
oc apply -f - <<EOF | ||
apiVersion: addon.open-cluster-management.io/v1alpha1 | ||
kind: ManagedClusterAddOn | ||
metadata: | ||
name: work-manager | ||
namespace: hub1 | ||
annotations: | ||
addon.open-cluster-management.io/hosting-cluster-name: local-cluster | ||
spec: | ||
installNamespace: open-cluster-management-hub1-addon-workmanager | ||
EOF | ||
``` | ||
You have to create a kubeconfig secret for the work-manager add-on via the following command: | ||
``` | ||
oc create secret generic work-manager-managed-kubeconfig --from-file=kubeconfig=<your regional hub kubeconfig> -n open-cluster-management-hub1-addon-workmanager | ||
``` | ||
|
||
### Import a regional hub cluster in hosted mode (Developer Preview) | ||
A regional hub cluster does not require any changes before importing it. The Red Hat Advanced Cluster Management agent is running in a hosting cluster. | ||
|
||
1. Import the cluster from the Red Hat Advanced Cluster Management console, add these annotations to the `managedCluster` custom resource. Use the kubeconfig import mode, and disable all add-ons. | ||
|
||
``` | ||
import.open-cluster-management.io/klusterlet-deploy-mode: Hosted | ||
import.open-cluster-management.io/hosting-cluster-name: local-cluster | ||
addon.open-cluster-management.io/disable-automatic-installation: "true" | ||
``` | ||
![import hosted cluster](import_hosted_cluster.png) | ||
2. Click `Next` to complete the import process. | ||
3. Enable the work-manager addon after the imported cluster is available by creating a file named `work-manager-file` that contains content that is similar to the following example:. | ||
``` | ||
apiVersion: addon.open-cluster-management.io/v1alpha1 | ||
kind: ManagedClusterAddOn | ||
metadata: | ||
name: work-manager | ||
namespace: hub1 | ||
annotations: | ||
addon.open-cluster-management.io/hosting-cluster-name: local-cluster | ||
spec: | ||
installNamespace: open-cluster-management-hub1-addon-workmanager | ||
``` | ||
4. Apply the file by running the following command: | ||
``` | ||
oc apply -f <work-manager-file> | ||
``` | ||
5. Create a kubeconfig secret for the work-manager add-on by running the following command: | ||
``` | ||
oc create secret generic work-manager-managed-kubeconfig --from-file=kubeconfig=<your regional hub kubeconfig> -n open-cluster-management-hub1-addon-workmanager | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.