# Placement With `Placement`, you can select a set of `ManagedClusters` from the `ManagedClusterSets` bound to the placement namespace. ## Community, discussion, contribution, and support Check the [CONTRIBUTING Doc](CONTRIBUTING.md) for how to contribute to the repo. ------ ## Getting Started ### Prerequisites You have at least one running kubernetes cluster; ### Clone this repo ```sh git clone https://github.com/open-cluster-management-io/placement.git cd placement ``` ### Deploy the placement controller Set environment variables. ```sh export KUBECONFIG= ``` Build the docker image to run the placement controller. ```sh go install github.com/openshift/imagebuilder/cmd/imagebuilder@v1.2.1 make images export IMAGE_NAME= # export IMAGE_NAME=quay.io/open-cluster-management/placement:latest ``` If your are using kind, load image into the kind cluster. ```sh kind load docker-image # kind load docker-image quay.io/open-cluster-management/placement:latest ``` And then deploy placement manager on the cluster. ```sh make deploy-hub ``` ### What is next After a successful deployment, check on the cluster and see the placement controller has been deployed. ```sh kubectl -n open-cluster-management-hub get pods NAME READY STATUS RESTARTS AGE cluster-manager-placement-controller-cf9bbd6c-x9dnd 1/1 Running 0 2m16s ``` Here is an example. Create a `ManagedClusterSet`. ```sh cat < ``` ### Clean up Undeploy placement controller from the cluster. ```sh make undeploy-hub ```