Creating a workload CAPX cluster spanning Prism Element clusters¶
Warning
The scenario and features described on this page are experimental. It's important to note that they have not been fully validated.
This page will explain how to deploy CAPX-based Kubernetes clusters where worker nodes are spanning multiple Prism Element (PE) clusters.
Note
All the PE clusters must be managed by the same Prism Central (PC) instance.
The topology will look like this:
- One PC managing multiple PE's
- One CAPI management cluster
- One CAPI workload cluster with multiple
MachineDeploymentresources
Refer to the CAPI quickstart to get started with CAPX.
To create workload clusters spanning multiple Prism Element clusters, it is required to create a MachineDeployment and NutanixMachineTemplate resource for each Prism Element cluster. The Prism Element specific parameters (name/UUID, subnet,...) are referenced in the NutanixMachineTemplate.
Steps¶
- Create a management cluster that has the CAPX infrastructure provider deployed.
- Create a
cluster.ymlfile containing the workload cluster definition. Refer to the steps defined in the CAPI quickstart guide to create an examplecluster.ymlfile. -
Add additional
MachineDeploymentandNutanixMachineTemplateresources.By default there is only one machine template and machine deployment defined. To add nodes residing on another Prism Element cluster, a new
MachineDeploymentandNutanixMachineTemplateresource needs to be added to the yaml file. The autogeneratedMachineDeploymentandNutanixMachineTemplateresource definitions can be used as a baseline.Make sure to modify the
MachineDeploymentandNutanixMachineTemplateparameters. -
Apply the modified
cluster.ymlfile to the management cluster.