Cluster manager

The are two ways to install the core control plane of open cluster management that includes cluster registration and manifests distribution.

Prerequisite

Ensure kubectl and kustomize are installed.

Ensure golang is installed, if you are planning to install from the source.

Prepare one Kubernetes cluster to function as the hub. For example, use kind to create a hub cluster. To use kind, you will need docker installed and running.

If you are running OS X, you’ll also need to install gnu-sed:

brew install gnu-sed

To create the hub cluster with kind, run:

# kind delete cluster --name hub # if the kind cluster is previously created and can be safely deleted
kind create cluster --name hub
kind get kubeconfig --name hub --internal > ~/hub-kubeconfig

Install from source

Clone the registration-operator

git clone https://github.com/open-cluster-management/registration-operator

Ensure the kubectl context is set to point to the hub cluster:

kubectl config use-context <hub cluster context> # kubectl config use-context kind-hub

Deploy hub

cd registration-operator
make deploy-hub # make deploy-hub GO_REQUIRED_MIN_VERSION:= # if you see warnings regarding go version

Install community operator from OperatorHub.io

If you are using OKD, OpenShift, or have OLM installed in your cluster, you can install the cluster manager community operator with a released version from OperatorHub.io.