Skip to content

Commit 5975315

Browse files
authored
Merge pull request #50840 from Amrita42/2022076new
correct placement of ephemeral resources
2 parents 25d0a9c + 1413bc7 commit 5975315

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

modules/quotas-resources-managed.adoc

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,18 @@ A pod is in a terminal state if `status.phase in (Failed, Succeeded)` is true.
2424
|`memory`
2525
|The sum of memory requests across all pods in a non-terminal state cannot exceed this value. `memory` and `requests.memory` are the same value and can be used interchangeably.
2626

27-
|`ephemeral-storage`
28-
|The sum of local ephemeral storage requests across all pods in a non-terminal state cannot exceed this value. `ephemeral-storage` and `requests.ephemeral-storage` are the same value and can be used interchangeably.
29-
3027
|`requests.cpu`
3128
|The sum of CPU requests across all pods in a non-terminal state cannot exceed this value. `cpu` and `requests.cpu` are the same value and can be used interchangeably.
3229

3330
|`requests.memory`
3431
|The sum of memory requests across all pods in a non-terminal state cannot exceed this value. `memory` and `requests.memory` are the same value and can be used interchangeably.
3532

36-
|`requests.ephemeral-storage`
37-
|The sum of ephemeral storage requests across all pods in a non-terminal state cannot exceed this value. `ephemeral-storage` and `requests.ephemeral-storage` are the same value and can be used interchangeably.
38-
3933
|`limits.cpu`
4034
|The sum of CPU limits across all pods in a non-terminal state cannot exceed this value.
4135

4236
|`limits.memory`
4337
|The sum of memory limits across all pods in a non-terminal state cannot exceed this value.
4438

45-
|`limits.ephemeral-storage`
46-
|The sum of ephemeral storage limits across all pods in a non-terminal state cannot exceed this value.
4739
|===
4840

4941
.Storage resources managed by quota
@@ -63,6 +55,15 @@ A pod is in a terminal state if `status.phase in (Failed, Succeeded)` is true.
6355

6456
|`<storage-class-name>.storageclass.storage.k8s.io/persistentvolumeclaims`
6557
|The total number of persistent volume claims with a matching storage class that can exist in the project.
58+
59+
|`ephemeral-storage`
60+
|The sum of local ephemeral storage requests across all pods in a non-terminal state cannot exceed this value. `ephemeral-storage` and `requests.ephemeral-storage` are the same value and can be used interchangeably.
61+
62+
|`requests.ephemeral-storage`
63+
|The sum of ephemeral storage requests across all pods in a non-terminal state cannot exceed this value. `ephemeral-storage` and `requests.ephemeral-storage` are the same value and can be used interchangeably.
64+
65+
|`limits.ephemeral-storage`
66+
|The sum of ephemeral storage limits across all pods in a non-terminal state cannot exceed this value.
6667
|===
6768

6869
[id="quotas-object-counts-managed_{context}"]

modules/quotas-sample-resource-quotas-def.adoc

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,16 @@ spec:
5454
pods: "4" <1>
5555
requests.cpu: "1" <2>
5656
requests.memory: 1Gi <3>
57-
requests.ephemeral-storage: 2Gi <4>
58-
limits.cpu: "2" <5>
59-
limits.memory: 2Gi <6>
60-
limits.ephemeral-storage: 4Gi <7>
57+
limits.cpu: "2" <4>
58+
limits.memory: 2Gi <5>
59+
6160
----
6261
<1> The total number of pods in a non-terminal state that can exist in the project.
6362
<2> Across all pods in a non-terminal state, the sum of CPU requests cannot exceed 1 core.
6463
<3> Across all pods in a non-terminal state, the sum of memory requests cannot exceed 1Gi.
65-
<4> Across all pods in a non-terminal state, the sum of ephemeral storage requests cannot exceed 2Gi.
66-
<5> Across all pods in a non-terminal state, the sum of CPU limits cannot exceed 2 cores.
67-
<6> Across all pods in a non-terminal state, the sum of memory limits cannot exceed 2Gi.
68-
<7> Across all pods in a non-terminal state, the sum of ephemeral storage limits cannot exceed 4Gi.
64+
<4> Across all pods in a non-terminal state, the sum of CPU limits cannot exceed 2 cores.
65+
<5> Across all pods in a non-terminal state, the sum of memory limits cannot exceed 2Gi.
66+
6967

7068
.`besteffort.yaml`
7169
[source,yaml]
@@ -139,6 +137,8 @@ spec:
139137
silver.storageclass.storage.k8s.io/persistentvolumeclaims: "5" <5>
140138
bronze.storageclass.storage.k8s.io/requests.storage: "0" <6>
141139
bronze.storageclass.storage.k8s.io/persistentvolumeclaims: "0" <7>
140+
requests.ephemeral-storage: 2Gi <8>
141+
limits.ephemeral-storage: 4Gi <9>
142142
----
143143
<1> The total number of persistent volume claims in a project
144144
<2> Across all persistent volume claims in a project, the sum of storage requested cannot exceed this value.
@@ -147,3 +147,5 @@ spec:
147147
<5> Across all persistent volume claims in a project, the total number of claims in the silver storage class cannot exceed this value.
148148
<6> Across all persistent volume claims in a project, the sum of storage requested in the bronze storage class cannot exceed this value. When this is set to `0`, it means bronze storage class cannot request storage.
149149
<7> Across all persistent volume claims in a project, the sum of storage requested in the bronze storage class cannot exceed this value. When this is set to `0`, it means bronze storage class cannot create claims.
150+
<8> Across all pods in a non-terminal state, the sum of ephemeral storage requests cannot exceed 2Gi.
151+
<9> Across all pods in a non-terminal state, the sum of ephemeral storage limits cannot exceed 4Gi.

modules/quotas-scopes.adoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,3 @@ to tracking the following resources:
4545
- `cpu`
4646
- `requests.cpu`
4747
- `limits.cpu`
48-
- `ephemeral-storage`
49-
- `requests.ephemeral-storage`
50-
- `limits.ephemeral-storage`

0 commit comments

Comments
 (0)