thecodeteam / roadmap

The {code} Team Roadmap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Proposal] Attach/Detach API

vladimirvivien opened this issue · comments

This proposal is to implement the Kubernetes Attach/Detach API. The API decentralizes the call to Attach/Detach volumes by invoking the operations from the controller (not the kubelets). The controller is able to properly coordinate attach/detach operations and handle situations where racy conditions may arise.

Attach/Detach API

The Attach API makes available the following operations

  • Attach() - remotely attaches a volume
  • VolumesAreAttached() - queries attachment status of a list of volumes
  • WaitForAttach - blocks until the specified device is reported attached
  • GetDeviceMountPath - returns where the device should be mounted
  • MountDevice - mounts device to a global path where it can be bind-mounted

The Detach API offers the following operations

  • ``