Skip to content

Commit 2911bf9

Browse files
committed
Modify allocatable storage to ephemeral-storage
Update the doc to use ephemeral-storage instead of storage
1 parent 855556c commit 2911bf9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/tasks/administer-cluster/reserve-compute-resources.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ on each node.
4242

4343
`Allocatable` on a Kubernetes node is defined as the amount of compute resources
4444
that are available for pods. The scheduler does not over-subscribe
45-
`Allocatable`. `CPU`, `memory` and `storage` are supported as of now.
45+
`Allocatable`. `CPU`, `memory` and `ephemeral-storage` are supported as of now.
4646

4747
Node Allocatable is exposed as part of `v1.Node` object in the API and as part
4848
of `kubectl describe node` in the CLI.
@@ -77,7 +77,7 @@ be configured to use the `systemd` cgroup driver.
7777

7878
### Kube Reserved
7979

80-
- **Kubelet Flag**: `--kube-reserved=[cpu=100m][,][memory=100Mi][,][storage=1Gi]`
80+
- **Kubelet Flag**: `--kube-reserved=[cpu=100m][,][memory=100Mi][,][ephemeral-storage=1Gi]`
8181
- **Kubelet Flag**: `--kube-reserved-cgroup=`
8282

8383
`kube-reserved` is meant to capture resource reservation for kubernetes system
@@ -107,7 +107,7 @@ exist. Kubelet will fail if an invalid cgroup is specified.
107107

108108
### System Reserved
109109

110-
- **Kubelet Flag**: `--system-reserved=[cpu=100mi][,][memory=100Mi][,][storage=1Gi]`
110+
- **Kubelet Flag**: `--system-reserved=[cpu=100mi][,][memory=100Mi][,][ephemeral-storage=1Gi]`
111111
- **Kubelet Flag**: `--system-reserved-cgroup=`
112112

113113

@@ -135,7 +135,7 @@ Memory pressure at the node level leads to System OOMs which affects the entire
135135
node and all pods running on it. Nodes can go offline temporarily until memory
136136
has been reclaimed. To avoid (or reduce the probability of) system OOMs kubelet
137137
provides [`Out of Resource`](./out-of-resource.md) management. Evictions are
138-
supported for `memory` and `storage` only. By reserving some memory via
138+
supported for `memory` and `ephemeral-storage` only. By reserving some memory via
139139
`--eviction-hard` flag, the `kubelet` attempts to `evict` pods whenever memory
140140
availability on the node drops below the reserved value. Hypothetically, if
141141
system daemons did not exist on a node, pods cannot use more than `capacity -
@@ -191,8 +191,8 @@ So expect a drop in `Allocatable` capacity in future releases.
191191
Here is an example to illustrate Node Allocatable computation:
192192

193193
* Node has `32Gi` of `memory`, `16 CPUs` and `100Gi` of `Storage`
194-
* `--kube-reserved` is set to `cpu=1,memory=2Gi,storage=1Gi`
195-
* `--system-reserved` is set to `cpu=500m,memory=1Gi,storage=1Gi`
194+
* `--kube-reserved` is set to `cpu=1,memory=2Gi,ephemeral-storage=1Gi`
195+
* `--system-reserved` is set to `cpu=500m,memory=1Gi,ephemeral-storage=1Gi`
196196
* `--eviction-hard` is set to `memory.available<500Mi,nodefs.available<10%`
197197

198198
Under this scenario, `Allocatable` will be `14.5 CPUs`, `28.5Gi` of memory and

0 commit comments

Comments
 (0)