diff --git a/examples/volumes/flexvolume/README.md b/examples/volumes/flexvolume/README.md index 6c78a9d9f2a..8f88b690cf5 100644 --- a/examples/volumes/flexvolume/README.md +++ b/examples/volumes/flexvolume/README.md @@ -1,84 +1 @@ -# Flexvolume - -Flexvolume enables users to mount vendor volumes into kubernetes. It expects vendor drivers are installed in the volume plugin path on every kubelet node. - -It allows for vendors to develop their own drivers to mount volumes on nodes. - -*Note: Flexvolume is an alpha feature and is most likely to change in future* - -## Prerequisites - -Install the vendor driver on all nodes in the kubelet plugin path. Path for installing the plugin: /usr/libexec/kubernetes/kubelet-plugins/volume/exec/\/\ - -For example to add a 'cifs' driver, by vendor 'foo' install the driver at: /usr/libexec/kubernetes/kubelet-plugins/volume/exec/\/cifs - -## Plugin details - -Driver will be invoked with 'Init' to initialize the driver. It will be invoked with 'attach' to attach the volume and with 'detach' to detach the volume from the kubelet node. It also supports custom mounts using 'mount' and 'unmount' callouts to the driver. - -### Driver invocation model: - -Init: - -``` - init -``` - -Attach: - -``` - attach -``` - -Detach: - -``` - detach -``` - -Mount: - -``` - mount -``` - -Unmount: - -``` - unmount -``` - -See [lvm](lvm) for a quick example on how to write a simple flexvolume driver. - -### Driver output: - -Flexvolume expects the driver to reply with the status of the operation in the -following format. - -``` -{ - "status": "", - "message": "", - "device": "" -} -``` - -### Default Json options - -In addition to the flags specified by the user in the Options field of the FlexVolumeSource, the following flags are also passed to the executable. - -``` -"kubernetes.io/fsType":"", -"kubernetes.io/readwrite":"", -"kubernetes.io/secret/key1":"" -... -"kubernetes.io/secret/keyN":"" -``` - -### Example of Flexvolume - -See [nginx.yaml](nginx.yaml) for a quick example on how to use Flexvolume in a pod. - - -[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/volumes/flexvolume/README.md?pixel)]() - +Please refer to https://github.com/kubernetes/community/tree/master/contributors/devel/flexvolume.md for documentation. \ No newline at end of file