Skip to content

Commit 21c05e4

Browse files
authored
Merge pull request #24906 from derekwaynecarr/memory-backed-size
Document SizeMemoryBackedVolumes feature for 1.20
2 parents 5307e26 + af23941 commit 21c05e4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

content/en/docs/concepts/storage/volumes.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,12 @@ While tmpfs is very fast, be aware that unlike disks, tmpfs is cleared on
303303
node reboot and any files you write count against your container's
304304
memory limit.
305305

306+
{{< note >}}
307+
If the `SizeMemoryBackedVolumes` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) is enabled,
308+
you can specify a size for memory backed volumes. If no size is specified, memory
309+
backed volumes are sized to 50% of the memory on a Linux host.
310+
{{< /note>}}
311+
306312
#### emptyDir configuration example
307313

308314
```yaml

content/en/docs/reference/command-line-tools-reference/feature-gates.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ different Kubernetes components.
159159
| `ServiceNodeExclusion` | `false` | Alpha | 1.8 | 1.18 |
160160
| `ServiceNodeExclusion` | `true` | Beta | 1.19 | |
161161
| `ServiceTopology` | `false` | Alpha | 1.17 | |
162+
| `SizeMemoryBackedVolumes` | `false` | Alpha | 1.20 | |
162163
| `SetHostnameAsFQDN` | `false` | Alpha | 1.19 | 1.19 |
163164
| `SetHostnameAsFQDN` | `true` | Beta | 1.20 | |
164165
| `StorageVersionHash` | `false` | Alpha | 1.14 | 1.14 |
@@ -565,6 +566,7 @@ Each feature gate is designed for enabling/disabling a specific feature:
565566
- `ServiceNodeExclusion`: Enable the exclusion of nodes from load balancers created by a cloud provider.
566567
A node is eligible for exclusion if labelled with "`alpha.service-controller.kubernetes.io/exclude-balancer`" key or `node.kubernetes.io/exclude-from-external-load-balancers`.
567568
- `ServiceTopology`: Enable service to route traffic based upon the Node topology of the cluster. See [ServiceTopology](/docs/concepts/services-networking/service-topology/) for more details.
569+
- `SizeMemoryBackedVolumes`: Enables kubelet support to size memory backed volumes. See [volumes](docs/concepts/storage/volumes) for more details.
568570
- `SetHostnameAsFQDN`: Enable the ability of setting Fully Qualified Domain Name(FQDN) as hostname of pod. See [Pod's `setHostnameAsFQDN` field](/docs/concepts/services-networking/dns-pod-service/#pod-sethostnameasfqdn-field).
569571
- `StartupProbe`: Enable the [startup](/docs/concepts/workloads/pods/pod-lifecycle/#when-should-you-use-a-startup-probe) probe in the kubelet.
570572
- `StorageObjectInUseProtection`: Postpone the deletion of PersistentVolume or

0 commit comments

Comments
 (0)