File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
reference/access-authn-authz Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -200,9 +200,12 @@ and automatically adds a default storage class to them.
200
200
This way, users that do not request any special storage class do not need to care about them at all and they
201
201
will get the default one.
202
202
203
- This admission controller does not do anything when no default storage class is configured. When more than one storage
204
- class is marked as default, it rejects any creation of ` PersistentVolumeClaim ` with an error and an administrator
205
- must revisit their ` StorageClass ` objects and mark only one as default.
203
+ This admission controller does nothing when no default ` StorageClass ` exists. When more than one storage
204
+ class is marked as default, and you then create a ` PersistentVolumeClaim ` with no ` storageClassName ` set,
205
+ Kubernetes uses the most recently created default ` StorageClass ` .
206
+ When a ` PersistentVolumeClaim ` is created with a specified ` volumeName ` , it remains in a pending state
207
+ if the static volume's ` storageClassName ` does not match the ` storageClassName ` on the ` PersistentVolumeClaim `
208
+ after any default StorageClass is applied to it.
206
209
This admission controller ignores any ` PersistentVolumeClaim ` updates; it acts only on creation.
207
210
208
211
See [ persistent volume] ( /docs/concepts/storage/persistent-volumes/ ) documentation about persistent volume claims and
Original file line number Diff line number Diff line change @@ -73,9 +73,13 @@ for details about addon manager and how to disable individual addons.
73
73
kubectl patch storageclass gold -p ' {"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
74
74
```
75
75
76
- Please note that at most one StorageClass can be marked as default. If two
77
- or more of them are marked as default, a ` PersistentVolumeClaim ` without
78
- ` storageClassName ` explicitly specified cannot be created.
76
+ Please note you can have multiple ` StorageClass ` marked as default. If more
77
+ than one ` StorageClass ` is marked as default, a ` PersistentVolumeClaim ` without
78
+ an explicitly defined ` storageClassName ` will be created using the most recently
79
+ created default ` StorageClass ` .
80
+ When a ` PersistentVolumeClaim ` is created with a specified ` volumeName ` , it remains
81
+ in a pending state if the static volume's ` storageClassName ` does not match the
82
+ ` StorageClass ` on the ` PersistentVolumeClaim ` .
79
83
80
84
1 . Verify that your chosen StorageClass is default:
81
85
You can’t perform that action at this time.
0 commit comments