Skip to content

Commit 65f333a

Browse files
committed
[zh-cn]sync change-default-storage-class
Signed-off-by: xin.li <[email protected]>
1 parent 37b54fe commit 65f333a

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

content/zh-cn/docs/tasks/administer-cluster/change-default-storage-class.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,20 @@ for details about addon manager and how to disable individual addons.
124124
```
125125

126126
<!--
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`.
130134
-->
131-
请注意,最多只能有一个 StorageClass 能够被标记为默认。
132-
如果它们中有两个或多个被标记为默认,Kubernetes 将忽略这个注解,
133-
也就是它将表现为没有默认 StorageClass。
135+
请注意,你可以将多个 `StorageClass` 标记为默认值。
136+
如果存在多个被标记为默认的 `StorageClass`,对于未明确指定 `storageClassName`
137+
`PersistentVolumeClaim`,将使用最近创建的默认 `StorageClass` 进行创建。
138+
当带有指定 `volumeName``PersistentVolumeClaim` 被创建时,如果静态卷的
139+
`storageClassName``PersistentVolumeClaim` 上的 `StorageClass` 不匹配,
140+
则该 `PersistentVolumeClaim` 将保持在待处理状态。
134141

135142
<!--
136143
1. Verify that your chosen StorageClass is default:

0 commit comments

Comments
 (0)