Merge pull request #49763 from my-git9/np-20900

[zh-cn]sync change-default-storage-class
pull/49805/head
Kubernetes Prow Robot 2025-02-16 17:08:22 -08:00 committed by GitHub
commit 0923cddb25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 6 deletions

View File

@ -124,13 +124,20 @@ for details about addon manager and how to disable individual addons.
```
<!--
Please note that at most one StorageClass can be marked as default. If two
or more of them are marked as default, a `PersistentVolumeClaim` without
`storageClassName` explicitly specified cannot be created.
Please note you can have multiple `StorageClass` marked as default. If more
than one `StorageClass` is marked as default, a `PersistentVolumeClaim` without
an explicitly defined `storageClassName` will be created using the most recently
created default `StorageClass`.
When a `PersistentVolumeClaim` is created with a specified `volumeName`, it remains
in a pending state if the static volume's `storageClassName` does not match the
`StorageClass` on the `PersistentVolumeClaim`.
-->
请注意,最多只能有一个 StorageClass 能够被标记为默认。
如果它们中有两个或多个被标记为默认Kubernetes 将忽略这个注解,
也就是它将表现为没有默认 StorageClass。
请注意,你可以将多个 `StorageClass` 标记为默认值。
如果存在多个被标记为默认的 `StorageClass`,对于未明确指定 `storageClassName`
`PersistentVolumeClaim`,将使用最近创建的默认 `StorageClass` 进行创建。
当带有指定 `volumeName``PersistentVolumeClaim` 被创建时,如果静态卷的
`storageClassName``PersistentVolumeClaim` 上的 `StorageClass` 不匹配,
则该 `PersistentVolumeClaim` 将保持在待处理状态。
<!--
1. Verify that your chosen StorageClass is default: