VolumeSubpathEnvExpansion feature gate is enabled by default from v1.15 (#16307)
* VolumeSubpathEnvExpansion feature gate is enabled by default from v1.15 * Feedback from sftim
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
e5863effe6
commit
633bda12a8
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user