Skip to content

Commit

Permalink
Update VolumeAttributesClass example to beta
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSirenko committed Sep 16, 2024
1 parent 6daee0b commit ce9a4a5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/modify-volume.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ To use this feature, it must be enabled in the following places:
- `VolumeAttributesClass` feature gate on `kube-apiserver` (consult your Kubernetes distro's documentation)
- `storage.k8s.io/v1alpha1` enabled in `kube-apiserver` via [`runtime-config`](https://kubernetes.io/docs/tasks/administer-cluster/enable-disable-api/) (consult your Kubernetes distro's documentation)
- `VolumeAttributesClass` feature gate on `kube-controller-manager` (consult your Kubernetes distro's documentation)
- `VolumeAttributesClass` feature gate on `external-provisioner` (add `--feature-gates=VolumeAttributesClass=true` to `sidecars.provisioner.additionalArgs` when using the EBS CSI Helm chart)
- `VolumeAttributesClass` feature gate on `kube-controller-manager` (add `--feature-gates=VolumeAttributesClass=true` to `sidecars.resizer.additionalArgs` when using the EBS CSI Helm chart)
- `VolumeAttributesClass` feature gate on `external-provisioner` (automatically added on clusters compatible with `VolumeAttributesClass` for driver versions >= 1.35.0; otherwise add `--feature-gates=VolumeAttributesClass=true` to `sidecars.provisioner.additionalArgs` when using the EBS CSI Helm chart)
- `VolumeAttributesClass` feature gate on `kube-controller-manager` (automatically added on clusters compatible with `VolumeAttributesClass` for driver versions >= 1.35.0; otherwise add `--feature-gates=VolumeAttributesClass=true` to `sidecars.resizer.additionalArgs` when using the EBS CSI Helm chart)

For more information, see the [Kubernetes documentation for the feature](https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/).

Expand Down
2 changes: 1 addition & 1 deletion examples/kubernetes/modify-volume/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Prerequisites

This example will only work on a cluster with the `VolumeAttributesClass` feature enabled. For more information see the [installation instructions in the EBS CSI `ModifyVolume` documentation](/docs/modify-volume.md).
This example will only work with `aws-ebs-csi-driver` >= v1.35.0 on a Kubernetes v1.31 cluster with the beta `VolumeAttributesClass` feature enabled. For more information see the [installation instructions in the EBS CSI `ModifyVolume` documentation](/docs/modify-volume.md).

## Usage

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
storageClassName: ebs-sc
resources:
requests:
storage: 100Gi
storage: 10Gi
---
apiVersion: v1
kind: Pod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
# limitations under the License.

---
apiVersion: storage.k8s.io/v1alpha1
apiVersion: storage.k8s.io/v1beta1
kind: VolumeAttributesClass
metadata:
name: io2-class
driverName: ebs.csi.aws.com
parameters:
type: io2
iops: "10000"
iops: "3000"
tagSpecification_1: "location=Seattle"
tagSpecification_2: "cost-center="

0 comments on commit ce9a4a5

Please sign in to comment.