You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This page assumes that you are familiar with [StorageClasses](/docs/concepts/storage/storage-classes/),
14
14
[volumes](/docs/concepts/storage/volumes/) and [PersistentVolumes](/docs/concepts/storage/persistent-volumes/)
@@ -18,17 +18,23 @@ in Kubernetes.
18
18
19
19
A VolumeAttributesClass provides a way for administrators to describe the mutable
20
20
"classes" of storage they offer. Different classes might map to different quality-of-service levels.
21
-
Kubernetes itself is unopinionated about what these classes represent.
21
+
Kubernetes itself is un-opinionated about what these classes represent.
22
22
23
-
This is an alpha feature and disabled by default.
23
+
This is a beta feature and disabled by default.
24
24
25
-
If you want to test the feature whilst it's alpha, you need to enable the `VolumeAttributesClass`
25
+
If you want to test the feature whilst it's beta, you need to enable the `VolumeAttributesClass`
26
26
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/) for the kube-controller-manager and the kube-apiserver. You use the `--feature-gates` command line argument:
27
27
28
28
```
29
29
--feature-gates="...,VolumeAttributesClass=true"
30
30
```
31
31
32
+
You will also have to enable the `storage.k8s.io/v1beta1` API group through the `kube-apiserver`[runtime-config](https://kubernetes.io/docs/tasks/administer-cluster/enable-disable-api/). You use the following command line argument:
33
+
34
+
```
35
+
--runtime-config=storage.k8s.io/v1beta1=true
36
+
```
37
+
32
38
You can also only use VolumeAttributesClasses with storage backed by
33
39
{{< glossary_tooltip text="Container Storage Interface" term_id="csi" >}}, and only where the
34
40
relevant CSI driver implements the `ModifyVolume` API.
@@ -45,7 +51,7 @@ While the name of a VolumeAttributesClass object in a `PersistentVolumeClaim` is
45
51
46
52
47
53
```yaml
48
-
apiVersion: storage.k8s.io/v1alpha1
54
+
apiVersion: storage.k8s.io/v1beta1
49
55
kind: VolumeAttributesClass
50
56
metadata:
51
57
name: silver
@@ -74,7 +80,7 @@ Each VolumeAttributesClass has a resizer that determines what volume plugin is u
74
80
75
81
The modifying volume feature support for VolumeAttributesClass is implemented in [kubernetes-csi/external-resizer](https://github.com/kubernetes-csi/external-resizer).
76
82
77
-
For example, a existing PersistentVolumeClaim is using a VolumeAttributesClass named silver:
83
+
For example, an existing PersistentVolumeClaim is using a VolumeAttributesClass named silver:
78
84
79
85
```yaml
80
86
apiVersion: v1
@@ -91,7 +97,7 @@ A new VolumeAttributesClass gold is available in the cluster:
91
97
92
98
93
99
```yaml
94
-
apiVersion: storage.k8s.io/v1alpha1
100
+
apiVersion: storage.k8s.io/v1beta1
95
101
kind: VolumeAttributesClass
96
102
metadata:
97
103
name: gold
@@ -128,4 +134,4 @@ the parameters may be used depends on the CSI driver implementation.
128
134
Please refer to the related CSI driver documentation for more details.
129
135
130
136
There can be at most 512 parameters defined for a VolumeAttributesClass.
131
-
The total length of the parameters object including its keys and values cannot exceed 256 KiB.
137
+
The total length of the parameters object including its keys and values cannot exceed 256 KiB.
0 commit comments