As described in Solution Overview, it is possible to define four types of clusters with Anthos on bare metal - admin cluster, user cluster, hybrid cluster, and stand-alone cluster.
This section provides the steps to create a hybrid cluster.
- The bmctl tool is downloaded and installed on the Linux workstation machine.
- The Linux workstation that is running the bmctl tool has network connectivity to all the nodes of the target hybrid cluster and the control plane VIP.
- The root user has SSH keys or SUDO user access on all nodes in the target hybrid cluster.
To create the hybrid cluster:
- SSH to the Linux workstation machine and change to the bare metal directory that you created in Prepare Linux workstation machine.
- Log in to gcloud as a user:
- Create the cluster configuration file:
- Modify the configuration file parameters to match your environment-specific variable. For more information, see Edit the cluster config file.
- Create the cluster:
The bmctl command runs preflight checks on the cluster config file before it creates a cluster. If the checks are successful, the cluster is created.
The bmctl logs, the preflight check and the node installation logs, are in the baremetal/bmctl-workspace/<CLUSTER_NAME>/log directory:
- During cluster creation, the bmctl command writes a kubeconfig file which is written to bmctl-workspace/<CLUSTER_NAME>/<CLUSTER_NAME>-kubeconfig. Verify the successful creation of the cluster.