@@ -9,7 +9,7 @@ weight: 65
9
9
10
10
<!-- overview -->
11
11
12
- {{< feature-state for_k8s_version="v1.26 " state="alpha" >}}
12
+ {{< feature-state for_k8s_version="v1.27 " state="alpha" >}}
13
13
14
14
Dynamic resource allocation is a new API for requesting and sharing resources
15
15
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.
31
31
32
32
## API
33
33
34
- The new ` resource.k8s.io/v1alpha1 ` {{< glossary_tooltip text="API group"
34
+ The ` resource.k8s.io/v1alpha2 ` {{< glossary_tooltip text="API group"
35
35
term_id="api-group" >}} provides four new types:
36
36
37
37
ResourceClass
@@ -51,7 +51,7 @@ ResourceClaimTemplate
51
51
: Defines the spec and some meta data for creating
52
52
ResourceClaims. Created by a user when deploying a workload.
53
53
54
- PodScheduling
54
+ PodSchedulingContext
55
55
: Used internally by the control plane and resource drivers
56
56
to coordinate pod scheduling when ResourceClaims need to be allocated
57
57
for a Pod.
@@ -76,7 +76,7 @@ Here is an example for a fictional resource driver. Two ResourceClaim objects
76
76
will get created for this Pod and each container gets access to one of them.
77
77
78
78
``` yaml
79
- apiVersion : resource.k8s.io/v1alpha1
79
+ apiVersion : resource.k8s.io/v1alpha2
80
80
kind : ResourceClass
81
81
name : resource.example.com
82
82
driverName : resource-driver.example.com
88
88
color : black
89
89
size : large
90
90
---
91
- apiVersion : resource.k8s.io/v1alpha1
91
+ apiVersion : resource.k8s.io/v1alpha2
92
92
kind : ResourceClaimTemplate
93
93
metadata :
94
94
name : large-black-cat-claim-template
@@ -176,7 +176,7 @@ future.
176
176
Dynamic resource allocation is an *alpha feature* and only enabled when the
177
177
` DynamicResourceAllocation` [feature
178
178
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"
180
180
term_id="api-group" >}} are enabled. For details on that, see the
181
181
` --feature-gates` and `--runtime-config` [kube-apiserver
182
182
parameters](/docs/reference/command-line-tools-reference/kube-apiserver/).
@@ -203,8 +203,9 @@ error: the server doesn't have a resource type "resourceclasses"
203
203
` ` `
204
204
205
205
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.
208
209
209
210
In addition to enabling the feature in the cluster, a resource driver also has to
210
211
be installed. Please refer to the driver's documentation for details.
0 commit comments