Documentation for MountPropagation beta (#7655)

This commit is contained in:
Jan Šafránek
2018-03-08 21:33:56 +01:00
committed by k8s-ci-robot
parent d634fb7f04
commit fd4115ce9f
2 changed files with 6 additions and 9 deletions
+4 -8
View File
@@ -1020,9 +1020,7 @@ More details can be found [here](https://github.com/kubernetes/community/blob/ma
## Mount propagation ## Mount propagation
**Note:** Mount propagation is an alpha feature in Kubernetes 1.8 and may be {% assign for_k8s_version="v1.10" %}{% include feature-state-beta.md %}
redesigned or even removed in future releases.
{: .note}
Mount propagation allows for sharing volumes mounted by a Container to Mount propagation allows for sharing volumes mounted by a Container to
other Containers in the same Pod, or even to other Pods on the same node. other Containers in the same Pod, or even to other Pods on the same node.
@@ -1031,14 +1029,12 @@ If the "`MountPropagation`" feature is disabled, volume mounts in pods are not p
That is, Containers run with `private` mount propagation as described in the That is, Containers run with `private` mount propagation as described in the
[Linux kernel documentation](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt). [Linux kernel documentation](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt).
To enable this feature, specify `MountPropagation=true` in the Mount propagation of a volume is controlled by `mountPropagation` field in Container.volumeMounts.
`--feature-gates` command line option for the API server and kubelets. Its values are:
When enabled, the `volumeMounts` field of a Container has a new
`mountPropagation` subfield. Its values are:
* `HostToContainer` - This volume mount will receive all subsequent mounts * `HostToContainer` - This volume mount will receive all subsequent mounts
that are mounted to this volume or any of its subdirectories. This is that are mounted to this volume or any of its subdirectories. This is
the default mode when the MountPropagation feature is enabled. the default mode.
In other words, if the host mounts anything inside the volume mount, the In other words, if the host mounts anything inside the volume mount, the
Container will see it mounted there. Container will see it mounted there.
+2 -1
View File
@@ -60,7 +60,8 @@ different Kubernetes components.
| `LocalStorageCapacityIsolation` | `false` | Alpha | 1.7 | 1.9 | | `LocalStorageCapacityIsolation` | `false` | Alpha | 1.7 | 1.9 |
| `LocalStorageCapacityIsolation` | `true` | Beta| 1.10 | | | `LocalStorageCapacityIsolation` | `true` | Beta| 1.10 | |
| `MountContainers` | `false` | Alpha | 1.9 | | | `MountContainers` | `false` | Alpha | 1.9 | |
| `MountPropagation` | `false` | Alpha | 1.8 | | | `MountPropagation` | `false` | Alpha | 1.8 | 1.9 |
| `MountPropagation` | `true` | Beta | 1.10 | |
| `PersistentLocalVolumes` | `false` | Alpha | 1.7 | 1.9 | | `PersistentLocalVolumes` | `false` | Alpha | 1.7 | 1.9 |
| `PersistentLocalVolumes` | `true` | Beta | 1.10 | | | `PersistentLocalVolumes` | `true` | Beta | 1.10 | |
| `PodPriority` | `false` | Alpha | 1.8 | | | `PodPriority` | `false` | Alpha | 1.8 | |