mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
add instructions on how to allow privileged containers
This commit is contained in:
parent
7830dcce7e
commit
37408447a9
@ -8,6 +8,19 @@ in a pod.
|
|||||||
The example below shows how to export a NFS share from a pod and import it
|
The example below shows how to export a NFS share from a pod and import it
|
||||||
into another one.
|
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
|
### NFS server part
|
||||||
|
|
||||||
Define [NFS server pod](nfs-server-pod.yaml) and
|
Define [NFS server pod](nfs-server-pod.yaml) and
|
||||||
|
Loading…
Reference in New Issue
Block a user