Skip to content

Commit be14fc3

Browse files
authored
Merge pull request #26800 from pohly/storage-capacity-beta
storage capacity: beta
2 parents 74b2a80 + f5aaf40 commit be14fc3

File tree

2 files changed

+7
-29
lines changed

2 files changed

+7
-29
lines changed

content/en/docs/concepts/storage/storage-capacity.md

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ which a pod runs: network-attached storage might not be accessible by
1717
all nodes, or storage is local to a node to begin with.
1818

1919
{{< feature-state for_k8s_version="v1.19" state="alpha" >}}
20+
{{< feature-state for_k8s_version="v1.21" state="beta" >}}
2021

2122
This page describes how Kubernetes keeps track of storage capacity and
2223
how the scheduler uses that information to schedule Pods onto nodes
@@ -103,34 +104,10 @@ to handle this automatically.
103104

104105
## Enabling storage capacity tracking
105106

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.
134111

135112
## {{% heading "whatsnext" %}}
136113

content/en/docs/reference/command-line-tools-reference/feature-gates.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ different Kubernetes components.
8585
| `CSIMigrationvSphere` | `false` | Beta | 1.19 | |
8686
| `CSIMigrationvSphereComplete` | `false` | Beta | 1.19 | |
8787
| `CSIServiceAccountToken` | `false` | Alpha | 1.20 | |
88-
| `CSIStorageCapacity` | `false` | Alpha | 1.19 | |
88+
| `CSIStorageCapacity` | `false` | Alpha | 1.19 | 1.20 |
89+
| `CSIStorageCapacity` | `true` | Beta | 1.21 | |
8990
| `CSIVolumeFSGroupPolicy` | `false` | Alpha | 1.19 | 1.19 |
9091
| `CSIVolumeFSGroupPolicy` | `true` | Beta | 1.20 | |
9192
| `ConfigurableFSGroupPolicy` | `false` | Alpha | 1.18 | 1.19 |

0 commit comments

Comments
 (0)