astonishing-hair-28835
11/17/2025, 6:58 PMRancher: 2.12.3
vSphere: 8
Datastore cluster with multiple datastores (DRS balancing required)
When provisioning RKE2 clusters, all VMs are being created on a single datastore instead of being distributed across the datastore cluster via DRS. This happens with both provisioning methods I've tried:
Method 1: Terraform Provider Using the official Rancher provider (https://registry.terraform.io/providers/rancher/rancher2/latest/docs):
rancher2_cluster_v2
rancher2_machine_config_v2
The rancher2_machine_config_v2 module supports datastore cluster configuration (as does the Rancher API), but machine pools still create all VMs in one datastore.
Method 2: Cluster Templates Following the documentation:
https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/manage-cluster-templates
https://github.com/rancher/cluster-template-examples
Datastore cluster is supported here as well, but same result - all VMs land on a single datastore.
RKE1 clusters provision correctly with proper DRS distribution across multiple datastores using the same configuration.
Has anyone experienced this issue with RKE2? Is there a workaround or specific configuration needed to enable proper datastore cluster DRS balancing for RKE2 machine pools?
Any insights would be greatly appreciated!