make admission controller bit clearer

This commit is contained in:
Matthew Wong
2016-08-23 00:19:02 -04:00
parent 12c3921fc9
commit edbac93ea8
+8 -8
View File
@@ -150,7 +150,7 @@ In the CLI, the access modes are abbreviated to:
### Class ### Class
A PV can have a class, which is specified by setting the A PV can have a class, which is specified by setting the
"volume.beta.kubernetes.io/storage-class" annotation to the name of a `volume.beta.kubernetes.io/storage-class` annotation to the name of a
`StorageClass`. A PV of a particular class can only be bound to PVCs requesting `StorageClass`. A PV of a particular class can only be bound to PVCs requesting
that class. A PV with no annotation or its class annotation set to `""` has no that class. A PV with no annotation or its class annotation set to `""` has no
class and can only be bound to PVCs that request no particular class. class and can only be bound to PVCs that request no particular class.
@@ -235,15 +235,15 @@ is turned on.
* If the admission controller is turned on, the administrator may specify a * If the admission controller is turned on, the administrator may specify a
default `StorageClass`. All PVCs that don't request a `StorageClass` can be default `StorageClass`. All PVCs that don't request a `StorageClass` can be
bound only to PVs of that default. This means that the PVs those PVCs would bound only to PVs of that default. A consequence of this is that the PVs those
normally be bound to, the PVs that have no class (no annotation or annotation PVCs would normally be bound to, the PVs that have no class (no annotation or annotation
equal to `""`), cannot be bound to any PVC. Specifying a default `StorageClass` equal to `""`), are unable to be bound to any PVC. Specifying a default
is done by setting the annotation `StorageClass` is done by setting the annotation
`storageclass.beta.kubernetes.io/is-default-class` equal to "true" in a `storageclass.beta.kubernetes.io/is-default-class` equal to "true" in a
`StorageClass` object. If the administrator does not specify a default, the `StorageClass` object. If the administrator does not specify a default, the
cluster will respond to PVC creation as if the admission controller were turned cluster responds to PVC creation as if the admission controller were turned off.
off. If more than one default is specified, the admission controller will forbid If more than one default is specified, the admission controller forbids the
the creation of all PVCs. creation of all PVCs.
* If the admission controller is turned off, there is no notion of a default * If the admission controller is turned off, there is no notion of a default
`StorageClass`. All PVCs that don't request a `StorageClass` can be bound only `StorageClass`. All PVCs that don't request a `StorageClass` can be bound only
to PVs that have no class. to PVs that have no class.