From 4557053faeb4dd21f7acf2952b9ccf11d7009e70 Mon Sep 17 00:00:00 2001 From: houjun Date: Wed, 11 Sep 2019 17:05:12 +0800 Subject: [PATCH] VolumeSubpathEnvExpansion feature gate is enabled by default from v1.15 --- content/en/docs/concepts/storage/volumes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/concepts/storage/volumes.md b/content/en/docs/concepts/storage/volumes.md index b92d4ff12ebd3..100ee56f717f9 100644 --- a/content/en/docs/concepts/storage/volumes.md +++ b/content/en/docs/concepts/storage/volumes.md @@ -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.