@@ -17,6 +17,7 @@ which a pod runs: network-attached storage might not be accessible by
17
17
all nodes, or storage is local to a node to begin with.
18
18
19
19
{{< feature-state for_k8s_version="v1.19" state="alpha" >}}
20
+ {{< feature-state for_k8s_version="v1.21" state="beta" >}}
20
21
21
22
This page describes how Kubernetes keeps track of storage capacity and
22
23
how the scheduler uses that information to schedule Pods onto nodes
@@ -103,34 +104,10 @@ to handle this automatically.
103
104
104
105
## Enabling storage capacity tracking
105
106
106
- Storage capacity tracking is an * alpha feature* and only enabled when
107
- the ` CSIStorageCapacity ` [ feature
108
- gate] ( /docs/reference/command-line-tools-reference/feature-gates/ ) and
109
- the ` storage.k8s.io/v1alpha1 ` {{< glossary_tooltip text="API group" term_id="api-group" >}} are enabled. For details on
110
- that, see the ` --feature-gates ` and ` --runtime-config ` [ kube-apiserver
111
- parameters] ( /docs/reference/command-line-tools-reference/kube-apiserver/ ) .
112
-
113
- A quick check
114
- whether a Kubernetes cluster supports the feature is to list
115
- CSIStorageCapacity objects with:
116
- ``` shell
117
- kubectl get csistoragecapacities --all-namespaces
118
- ```
119
-
120
- If your cluster supports CSIStorageCapacity, the response is either a list of CSIStorageCapacity objects or:
121
- ```
122
- No resources found
123
- ```
124
-
125
- If not supported, this error is printed instead:
126
- ```
127
- error: the server doesn't have a resource type "csistoragecapacities"
128
- ```
129
-
130
- In addition to enabling the feature in the cluster, a CSI
131
- driver also has to
132
- support it. Please refer to the driver's documentation for
133
- details.
107
+ Storage capacity tracking is a beta feature and enabled by default in
108
+ a Kubernetes cluster since Kubernetes 1.21. In addition to having the
109
+ feature enabled in the cluster, a CSI driver also has to support
110
+ it. Please refer to the driver's documentation for details.
134
111
135
112
## {{% heading "whatsnext" %}}
136
113
0 commit comments