Can we provide selectors on claims to bind to a labeled volume in openshift

Solution Verified - Updated -

Issue

  • As a Openshift user i want to be able to select which volumes my persistentvolumeclaims use by applying label selectors on the PVC against labeled Volumes. Similar to the concept used by projects with nodeSelectors.
    there is currently a proposal that defines this issue. This is critical to running openshift across multiple separated environments where machines have acess to seperate NFS(storage) servers
  • Use OSP cinder backend in different AZs for PVs in OpenShift.
  • For AWS EBS, a volume can only be attached to a node in the same AZ.The scheduler must therefore detect if a volume is being attached to a pod, and ensure that the pod is scheduled on a node in the same AZ as the volume. So that the scheduler need not query the cloud provider every time, and to support decoupled operation (e.g. bare metal) we tag the volume with our placement labels. This is done automatically by means of an admission controller on AWS when a PersistentVolume is created backed by an EBS volume.
  • VolumeClaimSelectors

Environment

  • OpenShift Container Platform

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.