Chapter 8. Creating a cluster
The multicluster engine for Kubernetes uses internal Hive components to create Red Hat OpenShift Container Platform clusters. See the following information to learn how to create clusters.
8.1. Prerequisites
Before creating a cluster, you must clone the clusterImageSets repository and apply it to your hub cluster. See the following steps:
Run the following command to clone:
git clone https://github.com/stolostron/acm-hive-openshift-releases.git cd acm-hive-openshift-releases git checkout origin/release-2.5
Run the following command to apply it to your hub cluster:
find clusterImageSets/fast -type d -exec oc apply -f {} \; 2> /dev/null
Select the Red Hat OpenShift Container Platform release images when you create a cluster.
8.2. Create a cluster with ClusterDeployment
A ClusterDeployment
is a Hive custom resource. See the following documentation to learn how to create an individual cluster:
Follow the Using Hive documentation to create the ClusterDeployment
custom resource.
8.3. Create a cluster with ClusterPool
A ClusterPool
is also a Hive custom resource that is used to create multiple clusters. Create a cluster with the Hive ClusterPool
API.
Follow the Cluster Pools documentation to provision a cluster.