From fdf97b020d1468cbf058e1bb0ad1557b394ccc7f Mon Sep 17 00:00:00 2001 From: Zhuzhenghao Date: Mon, 27 Mar 2023 23:01:00 +0800 Subject: [PATCH] [zh] resync blog 2022-8-15, 2023-01-05, 2023-03-17 --- ...t-our-contributors-APAC-China-region-03.md | 6 +- ...01-05-retroactive-default-storage-class.md | 80 +++++++++++++------ ...bernetes-1.27-deprecations-and-removals.md | 14 ++++ 3 files changed, 71 insertions(+), 29 deletions(-) diff --git a/content/zh-cn/blog/_posts/2022-08-15-meet-our-contributors-APAC-China-region-03.md b/content/zh-cn/blog/_posts/2022-08-15-meet-our-contributors-APAC-China-region-03.md index ce33476a52..0424e748af 100644 --- a/content/zh-cn/blog/_posts/2022-08-15-meet-our-contributors-APAC-China-region-03.md +++ b/content/zh-cn/blog/_posts/2022-08-15-meet-our-contributors-APAC-China-region-03.md @@ -69,7 +69,7 @@ Andy 是 Kubernetes 中国社区的活跃成员。 ## [Shiming Zhang](https://github.com/wzshiming) -目前 Jintao 是 [ingress-nginx](https://kubernetes.github.io/ingress-nginx/) 项目的 Reviewer。 +目前 Jintao 是 [ingress-nginx](https://kubernetes.github.io/ingress-nginx/) 项目的 Maintainer。 他建议关注开源公司的工作机会,这样你就可以找到一个可以让你全职贡献的机会。 对于新的贡献者们,Jintao 表示如果有人想为一个开源项目做重大贡献, diff --git a/content/zh-cn/blog/_posts/2023-01-05-retroactive-default-storage-class.md b/content/zh-cn/blog/_posts/2023-01-05-retroactive-default-storage-class.md index 9162281c74..02d5133ab6 100644 --- a/content/zh-cn/blog/_posts/2023-01-05-retroactive-default-storage-class.md +++ b/content/zh-cn/blog/_posts/2023-01-05-retroactive-default-storage-class.md @@ -19,8 +19,10 @@ slug: retroactive-default-storage-class **译者:** Michael Yao (DaoCloud) Kubernetes v1.25 引入了一个 Alpha 特性来更改默认 StorageClass 被分配到 PersistentVolumeClaim (PVC) 的方式。 @@ -28,7 +30,8 @@ Kubernetes v1.25 引入了一个 Alpha 特性来更改默认 StorageClass 被分 此外,任何未分配 StorageClass 的 PVC 都可以在后续被更新。此特性在 Kubernetes 1.26 中已进阶至 Beta。 有关如何使用的更多细节,请参阅 Kubernetes @@ -38,7 +41,9 @@ or you can read on to learn about why the Kubernetes project is making this chan ## 为什么 StorageClass 赋值需要改进 {#why-did-sc-assignment-need-improvements} @@ -46,10 +51,10 @@ Users might already be familiar with a similar feature that assigns default Stor 这个目前由[准入控制器](/zh-cn/docs/reference/access-authn-authz/admission-controllers/#defaultstorageclass)处理。 但是,如果在创建 PVC 时没有定义默认 StorageClass 会怎样? @@ -66,9 +71,11 @@ With the alpha feature enabled, there were two options admins had when they want 启用这个 Alpha 特性后,管理员想要更改默认 StorageClass 时会有两个选项: 1. 在移除与 PVC 关联的旧 StorageClass 之前,创建一个新的 StorageClass 作为默认值。 这将导致在短时间内出现两个默认值。此时,如果用户要创建一个 PersistentVolumeClaim, @@ -77,9 +84,11 @@ At this point, if a user were to create a PersistentVolumeClaim with storageClas 2. 先移除旧的默认值再创建一个新的默认 StorageClass。这将导致短时间内没有默认值。 接下来如果用户创建一个 PersistentVolumeClaim,并将 storageClassName 设置为 null @@ -89,8 +98,10 @@ The user would have to fix this by deleting the PVC and recreating it once the d ### 集群安装期间的资源顺序 {#resource-ordering-during-cluster-installation} @@ -101,8 +112,10 @@ This is because any Pods that required storage would rely on the presence of a d ## 发生了什么变化 {#what-changed} @@ -113,7 +126,10 @@ storageClassName 设置为 `null` 且未被绑定的所有 PersistentVolumeClaim ### Null `storageClassName` 与 `storageClassName: ""` - 有什么影响? {#null-vs-empty-string} @@ -123,7 +139,10 @@ Before this feature was introduced, those values were equal in terms of behavior 启用此新特性时,我们希望保持此行为,但也希望能够更新 StorageClass 名称。 考虑到这些限制,此特性更改了 `null` 的语义。 @@ -132,7 +151,8 @@ With these constraints in mind, the feature changes the semantics of null< 所以行为将保持不变。 @@ -179,7 +199,9 @@ The tables below show all these cases to better describe when PVC binds and when ## 如何使用 {#how-to-use-it} @@ -218,7 +240,9 @@ If you would like to see the feature in action and verify it works fine in your ``` 2. 在没有默认 StorageClass 时创建 PersistentVolumeClaim。 PVC 不会制备或绑定(除非当前已存在一个合适的 PV),PVC 将保持在 `Pending` 状态。 @@ -226,7 +250,7 @@ If you would like to see the feature in action and verify it works fine in your ``` $ kc get pvc NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE - pvc-1 Pending + pvc-1 Pending ``` ### 新指标 {#new-metrics} @@ -264,7 +291,8 @@ To help you see that the feature is working as expected we also introduced a new +### 移除 `--container-runtime` 命令行参数 + + +kubelet 接受一个已弃用的命令行参数 `--container-runtime`, +并且在移除 dockershim 代码后,唯一有效的值将是 `remote`。 +Kubernetes v1.27 将移除该参数,该参数自 v1.24 版本以来已被弃用。 +