Skip to content

Commit

Permalink
VolumeSubpathEnvExpansion feature gate is enabled by default from v1.…
Browse files Browse the repository at this point in the history
…15 (#16307)

* VolumeSubpathEnvExpansion feature gate is enabled by default from v1.15

* Feedback from sftim
  • Loading branch information
houjun41544 authored and k8s-ci-robot committed Oct 8, 2019
1 parent e5863ef commit 633bda1
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 the `VolumeSubpathEnvExpansion` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) 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 633bda1

Please sign in to comment.