Advanced Cluster Management¶
Red Hat Advanced Cluster Management (ACM) provides multicluster lifecycle management, governance, and observability. Installing ACM also automatically installs the multicluster engine operator.
Note
Only one ACM hub cluster can exist per OpenShift cluster.
Prerequisites¶
- Hub cluster is installed and storage is configured
- Cluster administrator privileges
Install the Operator via WebUI¶
- Go to Ecosystem -> Software Catalog -> filter for "Advanced Cluster Management" -> click the tile
- Click Install
- Leave all the defaults and click Install
- Wait for the Operator to install
- Go to Ecosystem -> Installed Operators -> click "Advanced Cluster Management for Kubernetes"
- Click on the "MultiClusterHub" tab and then click "Create MultiClusterHub"
- Leave all the defaults and click Create
Note
It can take up to 10 minutes for the hub to finish deploying all components.
- Wait for the status to show
Running
Install the Operator via YAML¶
apiVersion: v1
kind: Namespace
metadata:
name: open-cluster-management
---
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: open-cluster-management
namespace: open-cluster-management
spec:
targetNamespaces:
- open-cluster-management
---
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: acm-operator-subscription
namespace: open-cluster-management
spec:
sourceNamespace: openshift-marketplace
source: redhat-operators
channel: release-2.17
installPlanApproval: Automatic
name: advanced-cluster-management
Note
The ACM channel must match your OCP version. Verify the default channel: oc get packagemanifest advanced-cluster-management -o jsonpath='{.status.defaultChannel}'
Wait for the operator to install:
The PHASE should show Succeeded.
Create the MultiClusterHub¶
apiVersion: operator.open-cluster-management.io/v1
kind: MultiClusterHub
metadata:
name: multiclusterhub
namespace: open-cluster-management
spec: {}
Monitor the status:
The status should show Running.
Verify the Installation¶
oc get pods -n open-cluster-management
oc get route multicloud-console -n open-cluster-management -o jsonpath='{.spec.host}'
Enable Bare Metal Provisioning¶
Enable bare metal provisioning for spoke cluster deployment:
apiVersion: metal3.io/v1alpha1
kind: Provisioning
metadata:
name: provisioning-configuration
spec:
provisioningNetwork: "Disabled"
watchAllNamespaces: true
Import an Existing Cluster¶
To import an existing cluster (one not provisioned by ACM) into the hub:
-
Create the ManagedCluster resource on the hub:
-
Wait for ACM to generate the import resources:
-
Extract the import YAML and apply it on the target cluster:
-
Verify the managed cluster is connected:
The
HubAcceptedManagedClustercondition should beTrueand the cluster should show asAvailable.