Skip to content

Commit

Permalink
Explicitly specify the components that need a change
Browse files Browse the repository at this point in the history
For specifying mount propagation, changes to flags on apiserver and
kubelet are required. This PR fixes the problem.

For more comprehensive list of feature gate settings, please refer to
kubernetes#6364.

Closes: kubernetes#5766
  • Loading branch information
tengqm committed Jan 8, 2018
1 parent 2aa6dd6 commit e90de3f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/concepts/storage/volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -953,13 +953,14 @@ redesigned or even removed in future releases.
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.

If the MountPropagation feature is disabled, volume mounts in pods are not propagated.
If the "`MountPropagation`" feature is disabled, volume mounts in pods are not propagated.
That is, Containers run with `private` mount propagation as described in the
[Linux kernel documentation](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt).

To enable this feature, specify `MountPropagation=true` in the
`--feature-gates` command line option. When enabled, the `volumeMounts` field
of a Container has a new `mountPropagation` subfield. Its values are:
`--feature-gates` command line option for the API server and kubelets.
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
that are mounted to this volume or any of its subdirectories. This is
Expand Down

0 comments on commit e90de3f

Please sign in to comment.