Skip to content

Commit

Permalink
VolumeSubpathEnvExpansion feature gate is enabled by default from v1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
houjun41544 committed Oct 8, 2019
1 parent bb03bc0 commit 4557053
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
Expand Up @@ -1158,7 +1158,7 @@ spec:


Use the `subPathExpr` field to construct `subPath` directory names from Downward API environment variables.
Before you use this feature, you must enable the `VolumeSubpathEnvExpansion` feature gate.
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.
Expand Down

0 comments on commit 4557053

Please sign in to comment.