Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NFS Volume Plugin Info to Docs #6192

Merged
merged 1 commit into from
Mar 31, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ and to select the type of media to use, for clusters that have several media typ

## Types of Volumes

Kubernetes currently supports three types of Volumes, but more may be added in the future.
Kubernetes currently supports multiple types of Volumes. The community welcomes additional contributions.

### EmptyDir

Expand Down Expand Up @@ -84,4 +84,8 @@ desiredState:
id: testpd
kind: Pod
```
### NFS

Kubernetes NFS volumes allow an existing NFS share to be made available to containers within a pod.

[The NFS Pod example](https://github.com/GoogleCloudPlatform/kubernetes/blob/master/examples/nfs/test.yaml) demonstrates how to specify the usage of an NFS volume within a pod. In this example one can see that a volumeMount called "myshare" is being mounted onto /var/www/html/mount-test in the container "testpd". The volume "myshare" is defined as type nfs, with the NFS server serving from 172.17.0.2 and exporting directory /tmp as the share. The mount being created in this example is not read only.
4 changes: 2 additions & 2 deletions examples/nfs/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ desiredState:
image: dockerfile/nginx
volumeMounts:
# name must match the volume name below
- name: nfs
- name: myshare
mountPath: "/var/www/html/mount-test"
id: nfspd
version: v1beta1
volumes:
- name: nfs
- name: myshare
source:
nfs:
server: "172.17.0.2"
Expand Down