From 0df63ab0c18525605da7a9e1b7ce27463f3ed3df Mon Sep 17 00:00:00 2001 From: Steve Watt Date: Mon, 30 Mar 2015 16:29:48 -0500 Subject: [PATCH] Update volumes.md Update docs and example for NFS Plugin Modified the wording around how many Volumes exist Cleaned up the text around the NFS Pod description Fixed Spelling mistake on read-only --- docs/volumes.md | 6 +++++- examples/nfs/test.yaml | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/volumes.md b/docs/volumes.md index 5939b0619d1..db9576f1e7f 100644 --- a/docs/volumes.md +++ b/docs/volumes.md @@ -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 @@ -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. diff --git a/examples/nfs/test.yaml b/examples/nfs/test.yaml index 810700baf48..cfdfface876 100644 --- a/examples/nfs/test.yaml +++ b/examples/nfs/test.yaml @@ -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"