Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modified
Browse files Browse the repository at this point in the history
houjun41544 committed Oct 8, 2019
1 parent 193dffc commit 458045d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/en/docs/concepts/storage/volumes.md
Original file line number Diff line number Diff line change
@@ -1158,7 +1158,7 @@ spec:


Use the `subPathExpr` field to construct `subPath` directory names from Downward API environment variables.
This feature is enabled by default.
This feature requires `VolumeSubpathEnvExpansion` feature gate to be enabled. It is enabled by default starting with Kubernetes 1.15.
The `subPath` and `subPathExpr` properties are mutually exclusive.

In this example, a Pod uses `subPathExpr` to create a directory `pod1` within the hostPath volume `/var/log/pods`, using the pod name from the Downward API. The host directory `/var/log/pods/pod1` is mounted at `/logs` in the container.

0 comments on commit 458045d

Please sign in to comment.