This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Quick Start

Follow these steps to setup an OCM hub with two managed clusters using clusteradm and kind.

Prerequisites

  • Ensure kubectl and kustomize are installed.
  • Ensure kind (greater than v0.9.0+, or the latest version is preferred) is installed.

Install clusteradm CLI tool

Run the following command to download and install the latest clusteradm command-line tool:

curl -L https://raw.githubusercontent.com/open-cluster-management-io/clusteradm/main/install.sh | bash

Setup hub and managed cluster

Run the following command to quickly setup a hub cluster and 2 managed clusters by kind.

curl -L https://raw.githubusercontent.com/open-cluster-management-io/OCM/main/solutions/setup-dev-environment/local-up.sh | bash

If you want to setup OCM in a production environment or on a different kubernetes distribution, please refer to the Start the control plane and Register a cluster guides.

Alternatively, you can deploy OCM declaratively using the FleetConfig Controller.

What is next

Now you have the OCM control plane with 2 managed clusters connected! Let’s start your OCM journey.