-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
Updated formatting in "Persistent Volumes" & "Storage Classes" #19575
Conversation
Deploy preview for kubernetes-io-master-staging ready! Built with commit a7172e2 https://deploy-preview-19575--kubernetes-io-master-staging.netlify.com |
/assign @sftim |
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.
@sujaypillai that's good (and comprehensive) work.
Here's some feedback. Most of it is inline.
Also one specific thing:
- check the section “A Note on Namespaces” - did you miss a couple of changes?
ways than just size and access modes, without exposing users to the details of | ||
how those volumes are implemented. For these needs, there is the `StorageClass` | ||
resource. | ||
While `PersistentVolumeClaims` allow a user to consume abstract storage resources, it is common that users need `PersistentVolumes` with varying properties, such as performance, for different problems. Cluster administrators need to be able to offer a variety of `PersistentVolumes` that differ in more ways than just size and access modes, without exposing users to the details of how those volumes are implemented. For these needs, there is the StorageClass resource. |
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.
While `PersistentVolumeClaims` allow a user to consume abstract storage resources, it is common that users need `PersistentVolumes` with varying properties, such as performance, for different problems. Cluster administrators need to be able to offer a variety of `PersistentVolumes` that differ in more ways than just size and access modes, without exposing users to the details of how those volumes are implemented. For these needs, there is the StorageClass resource. | |
While PersistentVolumeClaims allow a user to consume abstract storage resources, it is common that users need PersistentVolumes with varying properties, such as performance, for different problems. Cluster administrators need to be able to offer a variety of PersistentVolumes that differ in more ways than just size and access modes, without exposing users to the details of how those volumes are implemented. For these needs, there is the _StorageClass_ resource. |
@@ -55,7 +49,7 @@ A cluster administrator creates a number of PVs. They carry the details of the r | |||
|
|||
#### Dynamic | |||
|
|||
When none of the static PVs the administrator created match a user's `PersistentVolumeClaim`, | |||
When none of the static PVs the administrator created match a user's PersistentVolumeClaim, | |||
the cluster may try to dynamically provision a volume specially for the PVC. | |||
This provisioning is based on `StorageClasses`: the PVC must request a |
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 provisioning is based on `StorageClasses`: the PVC must request a | |
This provisioning is based on StorageClasses: the PVC must request a |
@@ -80,10 +74,10 @@ Claims will remain unbound indefinitely if a matching volume does not exist. Cla | |||
|
|||
Pods use claims as volumes. The cluster inspects the claim to find the bound volume and mounts that volume for a Pod. For volumes that support multiple access modes, the user specifies which mode is desired when using their claim as a volume in a Pod. | |||
|
|||
Once a user has a claim and that claim is bound, the bound PV belongs to the user for as long as they need it. Users schedule Pods and access their claimed PVs by including a `persistentVolumeClaim` in their Pod's volumes block. [See below for syntax details](#claims-as-volumes). | |||
Once a user has a claim and that claim is bound, the bound PV belongs to the user for as long as they need it. Users schedule Pods and access their claimed PVs by including a persistentVolumeClaim in their Pod's volumes block. [See below for syntax details](#claims-as-volumes). |
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 would actually work better as:
Once a user has a claim and that claim is bound, the bound PV belongs to the user for as long as they need it. Users schedule Pods and access their claimed PVs by including a persistentVolumeClaim in their Pod's volumes block. [See below for syntax details](#claims-as-volumes). | |
Once a user has a claim and that claim is bound, the bound PV belongs to the user for as long as they need it. Users schedule Pods and access their claimed PVs by including a `persistentVolumeClaim` section in a Pod's `volumes` block. See [Claims As Volumes](#claims-as-volumes) for more details on this. |
@@ -228,7 +222,7 @@ Support for expanding CSI volumes is enabled by default but it also requires a s | |||
You can only resize volumes containing a file system if the file system is XFS, Ext3, or Ext4. | |||
|
|||
When a volume contains a file system, the file system is only resized when a new Pod is using | |||
the `PersistentVolumeClaim` in ReadWrite mode. File system expansion is either done when a Pod is starting up | |||
the PersistentVolumeClaim in ReadWrite mode. File system expansion is either done when a Pod is starting up |
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.
nit:
the PersistentVolumeClaim in ReadWrite mode. File system expansion is either done when a Pod is starting up | |
the PersistentVolumeClaim in `ReadWrite` mode. File system expansion is either done when a Pod is starting up |
@@ -578,7 +572,7 @@ Only FC and iSCSI volumes supported raw block volumes in Kubernetes 1.9. | |||
Support for the additional plugins was added in 1.10. | |||
{{< /note >}} | |||
|
|||
### Persistent Volumes using a Raw Block Volume | |||
### PersistentVolume using a Raw Block Volume |
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.
To keep incoming links working, do this:
### PersistentVolume using a Raw Block Volume | |
### PersistentVolume using a Raw Block Volume {#persistent-volume-using-a-raw-block-volume} |
@@ -219,7 +219,7 @@ allowedTopologies: | |||
|
|||
## Parameters | |||
|
|||
Storage classes have parameters that describe volumes belonging to the storage | |||
Storage Classes have parameters that describe volumes belonging to the storage |
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.
Storage Classes have parameters that describe volumes belonging to the storage | |
StorageClasses have parameters that describe volumes belonging to the storage |
@@ -367,7 +367,7 @@ parameters: | |||
`"8452344e2becec931ece4e33c4674e4e,42982310de6c63381718ccfa6d8cf397"`. This | |||
is an optional parameter. | |||
* `gidMin`, `gidMax` : The minimum and maximum value of GID range for the | |||
storage class. A unique value (GID) in this range ( gidMin-gidMax ) will be | |||
StorageClass. A unique value (GID) in this range ( gidMin-gidMax ) will be |
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.
Fine; the original is also OK.
@@ -580,7 +580,7 @@ parameters: | |||
|
|||
### Azure Disk | |||
|
|||
#### Azure Unmanaged Disk Storage Class | |||
#### Azure Unmanaged Disk StorageClass |
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'd write:
#### Azure Unmanaged Disk StorageClass | |
#### Azure Unmanaged Disk storage class |
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.
@sujaypillai, could you also look at line 19 of content/en/docs/concepts/storage/persistent-volumes.md
?
I think with maybe one more tweak this will be done. |
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.
Two small nits and one regression I think is definitely worth fixing (missing “See ” from a link)
@@ -300,7 +294,7 @@ spec: | |||
storage: 5Gi | |||
volumeMode: Filesystem | |||
accessModes: | |||
- ReadWriteOnce | |||
- `Once |
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 correct? The backticks here appear unnecessary.
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.
and there is no access mode called ReadWriteOnce
.
|
||
The access modes are: | ||
|
||
* ReadWriteOnce -- the volume can be mounted as read-write by a single node | ||
* `Once -- the volume can be mounted as read-write by a single node |
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.
Looks like these are nits introduced by a global replace operation. Please change it back.
/lgtm |
/approve noting that Prow will squash these commits |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sftim The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…netes#19575) * Updated formatting in "Persistent Volumes" & "Storage Classes" * Ammended the suggestions * Amended changes after PR review * Ammended the suggestions * Ammended the suggestions * Amended changes
Fixes #19542