File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed
content/zh-cn/docs/tasks/administer-cluster Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -124,13 +124,20 @@ for details about addon manager and how to disable individual addons.
124
124
```
125
125
126
126
<!--
127
- Please note that at most one StorageClass can be marked as default. If two
128
- or more of them are marked as default, a `PersistentVolumeClaim` without
129
- `storageClassName` explicitly specified cannot be created.
127
+ Please note you can have multiple `StorageClass` marked as default. If more
128
+ than one `StorageClass` is marked as default, a `PersistentVolumeClaim` without
129
+ an explicitly defined `storageClassName` will be created using the most recently
130
+ created default `StorageClass`.
131
+ When a `PersistentVolumeClaim` is created with a specified `volumeName`, it remains
132
+ in a pending state if the static volume's `storageClassName` does not match the
133
+ `StorageClass` on the `PersistentVolumeClaim`.
130
134
-->
131
- 请注意,最多只能有一个 StorageClass 能够被标记为默认。
132
- 如果它们中有两个或多个被标记为默认,Kubernetes 将忽略这个注解,
133
- 也就是它将表现为没有默认 StorageClass。
135
+ 请注意,你可以将多个 ` StorageClass ` 标记为默认值。
136
+ 如果存在多个被标记为默认的 ` StorageClass ` ,对于未明确指定 ` storageClassName `
137
+ 的 ` PersistentVolumeClaim ` ,将使用最近创建的默认 ` StorageClass ` 进行创建。
138
+ 当带有指定 ` volumeName ` 的 ` PersistentVolumeClaim ` 被创建时,如果静态卷的
139
+ ` storageClassName ` 与 ` PersistentVolumeClaim ` 上的 ` StorageClass ` 不匹配,
140
+ 则该 ` PersistentVolumeClaim ` 将保持在待处理状态。
134
141
135
142
<!--
136
143
1. Verify that your chosen StorageClass is default:
You can’t perform that action at this time.
0 commit comments