-
Notifications
You must be signed in to change notification settings - Fork 1.8k
OSDOCS-12422#VolumeAttributesClass TP #85302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
modules/storage-persistent-storage-pvc-volumeattributesclass.adoc
Outdated
Show resolved
Hide resolved
modules/storage-persistent-storage-pvc-volumeattributesclass.adoc
Outdated
Show resolved
Hide resolved
modules/storage-persistent-storage-pvc-volumeattributesclass.adoc
Outdated
Show resolved
Hide resolved
383e827
to
2f711c3
Compare
modules/storage-persistent-storage-pvc-volumeattributesclass.adoc
Outdated
Show resolved
Hide resolved
modules/storage-persistent-storage-pvc-volumeattributesclass.adoc
Outdated
Show resolved
Hide resolved
modules/storage-persistent-storage-pvc-volumeattributesclass.adoc
Outdated
Show resolved
Hide resolved
|
||
To apply a Volume Attribute Class to a PVC: | ||
|
||
* Set the PVC's `volumeAttributesClassName` parameter to the Volume Attribute Class's name: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
restate that this field can be update on existing bound PVC? @gnufied
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
modules/storage-persistent-storage-pvc-volumeattributesclass.adoc
Outdated
Show resolved
Hide resolved
modules/storage-persistent-storage-pvc-volumeattributesclass.adoc
Outdated
Show resolved
Hide resolved
94d4f74
to
2f2ca1b
Compare
/label peer-review-in-progress |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, only one small nit.
modules/storage-persistent-storage-pvc-volumeattributesclass.adoc
Outdated
Show resolved
Hide resolved
/label peer-review-done |
2f2ca1b
to
d627003
Compare
if openshift/gcp-pd-csi-driver#75 merges please add GCP PD to the list of drivers that support this feature. |
:FeatureName: Volume Attributes Classes | ||
include::snippets/technology-preview.adoc[leveloffset=+1] | ||
|
||
Volume Attributes Classes in {product-title} is available only with AWS Elastic Block Storage (EBS) Container Storage Interface (CSI). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now available with GCP-PD CSI driver too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added GCP.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feature works with GCP-PD only when diskType is "hyperdisk" eg., "hyperdisk-balanced". We might want to add this as a limitation for GCP? cc. @dfajmon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree. This limitation should be mentioned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
== Limitations | ||
Volume Attributes Classes has the following limitations: | ||
|
||
* When using with GCP, `diskType` must be set to `hyperdisk-balanced`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this true? where is this coming from? hyperdisk should only be available on certain instance types.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VolumeAttributesClasses are supported only for hyperdisks.
Hyperdisks are only available for C3 and N4 instances.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VAC feature is supported on all hyperdisk types which are, 'hyperdisk-balanced', 'hyperdisk-extreme', 'hyperdisk-ml', 'hyperdisk-throughput'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we only claim support for hyperdisk-balanced IIRC
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes we will be going only with hyperdisk-balanced. I talked with @radeore, and we agreed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When using with GCP,
diskType
must be set tohyperdisk-balanced
.
hmm, this reads weird. It should rather say, volume modifications via volumeattributes are only possible for hyperdisk-balanced
disk types.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
modules/storage-persistent-storage-pvc-volumeattributesclass.adoc
Outdated
Show resolved
Hide resolved
95f5e79
to
b5d0287
Compare
|
||
You can apply a Volume Attributes Class to a persistent volume claim (PVC). If a new Volume Attributes Class becomes available in the cluster, a user can update the PVC with the new Volume Attributes Class if needed. | ||
|
||
Volume Attributes Classes have parameters that describe volumes belonging to them. Different parameters can be accepted depending on the provisioner or the resizer. If a parameter is omitted, the default is used at volume provisioning. If you apply the PVC with a different Volume Attributes Class with omitted parameters, the default value of the parameters might be used depending on the CSI driver implementation. For more information, see the related CSI driver documentation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Different parameters can be accepted depending on the provisioner or the resizer.
No the parameters are property of CSI driver. And are opaque to provisioner or resizer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just deleted that sentence.
f5831d2
to
2e41d93
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
LGTM |
@lpettyjo: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Version(s): 4.19
Issue: https://issues.redhat.com/browse/OSDOCS-12422
Link to docs preview: https://85302--ocpdocs-pr.netlify.app/openshift-enterprise/latest/storage/understanding-persistent-storage.html#storage-persistent-storage-pvc-volumeattributesclass_understanding-persistent-storage
QE review:
Additional information:
PTAL: @jsafrane @gcharot @radeore @chao007 @dfajmon