Skip to main content
Version: 3.1

volume-placement-strategies-crd-reference

Portworx provides a CustomResouceDefinition (CRD) called VolumePlacementStrategy. The specification for this CRD is composed of 4 main sections:

Additional Information:

replicaAffinity

Schema

Example use cases of replicaAffinity

By default, Portworx automatically adds the following labels to each of its storage pools. These can be used for replica affinity rules to target replicas on a specific storage pool type:

  • iopriority
  • medium (Media Type)

replicaAntiAffinity

Schema

Example use cases

volumeAffinity

Schema

Example use cases

volumeAntiAffinity

Schema

Example use cases

Do not collocate with other cassandra volumes

topologyKey

If topologyKey is not set, by default the rule will avoid/colocate volumes at the node level using built-in unique node identifiers.

Portworx Built-in

topologyKey can use the built-in key portworx.io/pool that is set automatically as a unique key/value on every Portworx pool. This can be used with volumeAffinity/volumeAntiAffinity to control volume placement at the pool level to work for individual pools.

Templates

Parameter values in matchExpressions may use predefined templates. The VolumePlacementStrategy will automatically resolve these templates at provision time as detailed below:

Was this page helpful?