VMWare Affinity Rules


Cory Jett
 

Hello. We are running Cloud Foundry v215 deployed to vSphere and are looking to implement drs_rules to improve fault tolerence per this document https://bosh.io/docs/vm-anti-affinity.html. The current YAML structure of our resource pools looks like this (generated using spiff):

resource_pools:
- cloud_properties:
cpu: 2
disk: 32768
ram: 16384
env:
bosh:
password: REDACTED
name: runner_z1
network: cf1
stemcell:
name: bosh-vsphere-esxi-ubuntu-trusty-go_agent
version: latest

But the YAML structure in the referenced document looks like this:

resource_pools:
- name: runner_z1
cloud_properties:
datacenters:
- name: my-dc
clusters:
- my-vsphere-cluster:
drs_rules:
- name: separate-hadoop-datanodes-rule
type: separate_vms


I am having trouble restructuring the YAML implementing drs_rules and getting a successful deployment. BOSH accepts the format but the deployment fails. Can someone point me in the right direction?

Join cf-bosh@lists.cloudfoundry.org to automatically receive all group messages.