From d75bc2a001cb75d3bfe846972458a3c11a5e38e8 Mon Sep 17 00:00:00 2001 From: Chao Xu Date: Thu, 11 Jun 2015 10:33:29 -0700 Subject: [PATCH] add instructions on how to allow privileged containers --- nfs/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/nfs/README.md b/nfs/README.md index c716dcf8..d1144442 100644 --- a/nfs/README.md +++ b/nfs/README.md @@ -8,6 +8,19 @@ in a pod. The example below shows how to export a NFS share from a pod and import it into another one. +###Prerequisites +The nfs server pod creates a privileged container, so if you are using a Salt based KUBERNETES_PROVIDER (**gce**, **vagrant**, **aws**), you have to enable the ability to create privileged containers by API. + +```shell +#At the root of Kubernetes source code +$ vi cluster/saltbase/pillar/privilege.sls + +# If true, allow privileged containers to be created by API +allow_privileged: true +``` + +Rebuild the Kubernetes and spin up a cluster using your preferred KUBERNETES_PROVIDER. + ### NFS server part Define [NFS server pod](nfs-server-pod.yaml) and