diff --git a/content/zh-cn/docs/concepts/architecture/controller.md b/content/zh-cn/docs/concepts/architecture/controller.md index 343cc05e99c..5acb23af147 100644 --- a/content/zh-cn/docs/concepts/architecture/controller.md +++ b/content/zh-cn/docs/concepts/architecture/controller.md @@ -37,7 +37,7 @@ closer to the desired state, by turning equipment on or off. ## Controller pattern A controller tracks at least one Kubernetes resource type. -These [objects](/docs/concepts/overview/working-with-objects/kubernetes-objects/#kubernetes-objects) +These {{< glossary_tooltip text="objects" term_id="object" >}} have a spec field that represents the desired state. The controller(s) for that resource are responsible for making the current state come closer to that desired state. @@ -56,7 +56,7 @@ detail. ## 控制器模式 {#controller-pattern} 一个控制器至少追踪一种类型的 Kubernetes 资源。这些 -[对象](/zh-cn/docs/concepts/overview/working-with-objects/kubernetes-objects/#kubernetes-objects) +{{< glossary_tooltip text="对象" term_id="object" >}} 有一个代表期望状态的 `spec` 字段。 该资源的控制器负责确保其当前状态接近期望状态。 @@ -287,14 +287,14 @@ Kubernetes 允许你运行一个稳定的控制平面,这样即使某些内置 ## {{% heading "whatsnext" %}} * 阅读 [Kubernetes 控制平面组件](/zh-cn/docs/concepts/overview/components/#control-plane-components) -* 了解 [Kubernetes 对象](/zh-cn/docs/concepts/overview/working-with-objects/kubernetes-objects/) +* 了解 [Kubernetes 对象](/zh-cn/docs/concepts/overview/working-with-objects/) 的一些基本知识 * 进一步学习 [Kubernetes API](/zh-cn/docs/concepts/overview/kubernetes-api/) * 如果你想编写自己的控制器,请看 Kubernetes 的 diff --git a/content/zh-cn/docs/concepts/architecture/garbage-collection.md b/content/zh-cn/docs/concepts/architecture/garbage-collection.md index bcde52e62a4..a684e1df9bb 100644 --- a/content/zh-cn/docs/concepts/architecture/garbage-collection.md +++ b/content/zh-cn/docs/concepts/architecture/garbage-collection.md @@ -46,7 +46,7 @@ allows the clean up of resources like the following: 你也可以使用 Kubernetes {{}} 来控制垃圾收集机制如何以及何时删除包含属主引用的资源。 @@ -145,7 +145,7 @@ owner references using Kubernetes {{ ### 前台级联删除 {#foreground-deletion} @@ -169,7 +169,7 @@ owner object: After the owner object enters the deletion in progress state, the controller deletes the dependents. After deleting all the dependent objects, the controller deletes the owner object. At this point, the object is no longer visible in the -Kubernetes API. +Kubernetes API. During foreground cascading deletion, the only dependents that block owner deletion are those that have the `ownerReference.blockOwnerDeletion=true` field. @@ -223,7 +223,7 @@ to override this behaviour, see [Delete owner objects and orphan dependents](/do The {{}} performs garbage collection on unused images every five minutes and on unused containers every minute. You should avoid using external garbage collection tools, as these can -break the kubelet behavior and remove containers that should exist. +break the kubelet behavior and remove containers that should exist. --> ## 未使用容器和镜像的垃圾收集 {#containers-images} @@ -248,7 +248,7 @@ resource type. ### Container image lifecycle Kubernetes manages the lifecycle of all images through its *image manager*, -which is part of the kubelet, with the cooperation of +which is part of the kubelet, with the cooperation of {{< glossary_tooltip text="cadvisor" term_id="cadvisor" >}}. The kubelet considers the following disk usage limits when making garbage collection decisions: @@ -277,7 +277,7 @@ kubelet 会持续删除镜像,直到磁盘用量到达 `LowThresholdPercent` ### Container garbage collection {#container-image-garbage-collection} The kubelet garbage collects unused containers based on the following variables, -which you can define: +which you can define: --> ### 容器垃圾收集 {#container-image-garbage-collection} @@ -300,7 +300,7 @@ kubelet 会基于如下变量对所有未使用的容器执行垃圾收集操作 ## 配置垃圾收集 {#configuring-gc}