-
Notifications
You must be signed in to change notification settings - Fork 1.9k
BZ1739420 - Clarify selector-label volume binding #20998
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
Conversation
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 the right placement for this optional step (between Define and Deploy)? Also, not certain that "when using a selector" is necessary here?
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.
The placement is OK, however, the heading does not match the content. Heading says that it's about label selectors, but the two solutions don't use selector at all.
There are two mixed topics:
- bind a PVC to a specific PV
- This can be done either by specifying pvc.spec.volumeName (when knowing the PV name) or using pvc.spec.selector (when knowing PV labels).
- reserve a PV to specific PVC (or namespace)
- This can be done by using a specific storage class or setting pv.spec.claimRef, as outlined correctly below.
I would not mix those in a single chapter.
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.
|
@liangxia or @qinpingli PTAL |
|
@jkaurredhat PTAL |
|
@chao007 Could you help review this patch? |
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.
The placement is OK, however, the heading does not match the content. Heading says that it's about label selectors, but the two solutions don't use selector at all.
There are two mixed topics:
- bind a PVC to a specific PV
- This can be done either by specifying pvc.spec.volumeName (when knowing the PV name) or using pvc.spec.selector (when knowing PV labels).
- reserve a PV to specific PVC (or namespace)
- This can be done by using a specific storage class or setting pv.spec.claimRef, as outlined correctly below.
I would not mix those in a single chapter.
| If necessary in a multi-tenant environment, use a quota definition to reserve the storage class and PV(s) only to a specific namespace. | ||
| ==== | ||
|
|
||
| . Pre-bind the PV to your PVC using the PVC namespace and name. A PV defined as such will bind only to the specified PVC and to nothing else, as shown in the following example: |
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.
@chao007 - I dropped "namespace" from the subhead as you suggested, but is it okay to still have it "PVC namespace" here or should it also be removed?
|
lgtm |
|
@chao007 Can you please approve from QE side? |
|
@openshift/team-documentation PTAL |
|
LGTM |
|
LGTM. |
BZ1739420
Doc bug asks to include optional steps for how to reserve a PV for specific tasks, as described in BZ1717746.
Applies to
enterprise-3.11only.