Skip to content

Commit 3876340

Browse files
authored
Merge pull request #48510 from LionelJouin/KEP-4817
[KEP-4817]: DRA: Resource Claim Status with possible standardized network interface data
2 parents f8f5eda + 816efb7 commit 3876340

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

content/en/docs/concepts/scheduling-eviction/dynamic-resource-allocation.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,23 @@ spec:
200200
You may also be able to mutate the incoming Pod, at admission time, to unset
201201
the `.spec.nodeName` field and to use a node selector instead.
202202

203+
## ResourceClaim Device Status
204+
205+
{{< feature-state feature_gate_name="DRAResourceClaimDeviceStatus" >}}
206+
207+
The drivers can report driver-specific device status data for each allocated device
208+
in a resource claim. For example, IPs assigned to a network interface device can be
209+
reported in the ResourceClaim status.
210+
211+
The drivers setting the status, the accuracy of the information depends on the implementation
212+
of those DRA Drivers. Therefore, the reported status of the device may not always reflect the
213+
real time changes of the state of the device.
214+
215+
When the feature is disabled, that field automatically gets cleared when storing the ResourceClaim.
216+
217+
A ResourceClaim device status is supported when it is possible, from a DRA driver, to update an
218+
existing ResourceClaim where the `status.devices` field is set.
219+
203220
## Enabling dynamic resource allocation
204221

205222
Dynamic resource allocation is an *alpha feature* and only enabled when the
@@ -209,6 +226,10 @@ are enabled. For details on that, see the `--feature-gates` and `--runtime-confi
209226
[kube-apiserver parameters](/docs/reference/command-line-tools-reference/kube-apiserver/).
210227
kube-scheduler, kube-controller-manager and kubelet also need the feature gate.
211228

229+
When a resource driver reports the status of the devices, then the
230+
`DRAResourceClaimDeviceStatus` feature gate has to be enabled in addition to
231+
`DynamicResourceAllocation`.
232+
212233
A quick check whether a Kubernetes cluster supports the feature is to list
213234
DeviceClass objects with:
214235

@@ -237,6 +258,13 @@ include it.
237258
In addition to enabling the feature in the cluster, a resource driver also has to
238259
be installed. Please refer to the driver's documentation for details.
239260

261+
### Enabling Device Status
262+
263+
[ResourceClaim Device Status](#resourceclaim-device-status) is an *alpha feature*
264+
and only enabled when the `DRAResourceClaimDeviceStatus`
265+
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
266+
is enabled in the kube-apiserver.
267+
240268
## {{% heading "whatsnext" %}}
241269

242270
- For more information on the design, see the
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: DRAResourceClaimDeviceStatus
3+
content_type: feature_gate
4+
_build:
5+
list: never
6+
render: false
7+
8+
stages:
9+
- stage: alpha
10+
defaultValue: false
11+
fromVersion: "1.32"
12+
---
13+
Enables support the ResourceClaim.status.devices field and for setting this
14+
status from DRA drivers.

0 commit comments

Comments
 (0)