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
MachineDeployment
resources
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.yml
file containing the workload cluster definition. Refer to the steps defined in the CAPI quickstart guide to create an examplecluster.yml
file. -
Add additional
MachineDeployment
andNutanixMachineTemplate
resources.By default there is only one machine template and machine deployment defined. To add nodes residing on another Prism Element cluster, a new
MachineDeployment
andNutanixMachineTemplate
resource needs to be added to the yaml file. The autogeneratedMachineDeployment
andNutanixMachineTemplate
resource definitions can be used as a baseline.Make sure to modify the
MachineDeployment
andNutanixMachineTemplate
parameters. -
Apply the modified
cluster.yml
file to the management cluster.