Skip to content

Commit 955b498

Browse files
authored
Merge pull request #40086 from pohly/dra-update
dynamic resource allocation: update for 1.27
2 parents bd456cf + 5beb348 commit 955b498

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ weight: 65
99

1010
<!-- overview -->
1111

12-
{{< feature-state for_k8s_version="v1.26" state="alpha" >}}
12+
{{< feature-state for_k8s_version="v1.27" state="alpha" >}}
1313

1414
Dynamic resource allocation is a new API for requesting and sharing resources
1515
between pods and containers inside a pod. It is a generalization of the
@@ -31,7 +31,7 @@ check the documentation for that version of Kubernetes.
3131

3232
## API
3333

34-
The new `resource.k8s.io/v1alpha1` {{< glossary_tooltip text="API group"
34+
The `resource.k8s.io/v1alpha2` {{< glossary_tooltip text="API group"
3535
term_id="api-group" >}} provides four new types:
3636

3737
ResourceClass
@@ -51,7 +51,7 @@ ResourceClaimTemplate
5151
: Defines the spec and some meta data for creating
5252
ResourceClaims. Created by a user when deploying a workload.
5353

54-
PodScheduling
54+
PodSchedulingContext
5555
: Used internally by the control plane and resource drivers
5656
to coordinate pod scheduling when ResourceClaims need to be allocated
5757
for a Pod.
@@ -76,7 +76,7 @@ Here is an example for a fictional resource driver. Two ResourceClaim objects
7676
will get created for this Pod and each container gets access to one of them.
7777

7878
```yaml
79-
apiVersion: resource.k8s.io/v1alpha1
79+
apiVersion: resource.k8s.io/v1alpha2
8080
kind: ResourceClass
8181
name: resource.example.com
8282
driverName: resource-driver.example.com
@@ -88,7 +88,7 @@ spec:
8888
color: black
8989
size: large
9090
---
91-
apiVersion: resource.k8s.io/v1alpha1
91+
apiVersion: resource.k8s.io/v1alpha2
9292
kind: ResourceClaimTemplate
9393
metadata:
9494
name: large-black-cat-claim-template
@@ -176,7 +176,7 @@ future.
176176
Dynamic resource allocation is an *alpha feature* and only enabled when the
177177
`DynamicResourceAllocation` [feature
178178
gate](/docs/reference/command-line-tools-reference/feature-gates/) and the
179-
`resource.k8s.io/v1alpha1` {{< glossary_tooltip text="API group"
179+
`resource.k8s.io/v1alpha2` {{< glossary_tooltip text="API group"
180180
term_id="api-group" >}} are enabled. For details on that, see the
181181
`--feature-gates` and `--runtime-config` [kube-apiserver
182182
parameters](/docs/reference/command-line-tools-reference/kube-apiserver/).
@@ -203,8 +203,9 @@ error: the server doesn't have a resource type "resourceclasses"
203203
```
204204

205205
The default configuration of kube-scheduler enables the "DynamicResources"
206-
plugin if and only if the feature gate is enabled. Custom configurations may
207-
have to be modified to include it.
206+
plugin if and only if the feature gate is enabled and when using
207+
the v1 configuration API. Custom configurations may have to be modified to
208+
include it.
208209

209210
In addition to enabling the feature in the cluster, a resource driver also has to
210211
be installed. Please refer to the driver's documentation for details.

0 commit comments

Comments
 (0)