website/content/zh-cn/docs/reference/glossary/garbage-collection.md

51 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: 垃圾收集Garbage Collection
id: garbage-collection
date: 2021-07-07
full_link: /zh-cn/docs/concepts/architecture/garbage-collection/
short_description: >
Kubernetes 用于清理集群资源的各种机制的统称。
aka:
tags:
- fundamental
- operation
---
<!--
title: Garbage Collection
id: garbage-collection
date: 2021-07-07
full_link: /docs/concepts/architecture/garbage-collection/
short_description: >
A collective term for the various mechanisms Kubernetes uses to clean up cluster
resources.
aka:
tags:
- fundamental
- operation
-->
<!--
Garbage collection is a collective term for the various mechanisms Kubernetes uses to clean up
cluster resources.
-->
垃圾收集Garbage Collection是 Kubernetes 用于清理集群资源的各种机制的统称。
<!--more-->
<!--
Kubernetes uses garbage collection to clean up resources like
[unused containers and images](/docs/concepts/architecture/garbage-collection/#containers-images),
[failed Pods](/docs/concepts/workloads/pods/pod-lifecycle/#pod-garbage-collection),
[objects owned by the targeted resource](/docs/concepts/overview/working-with-objects/owners-dependents/),
[completed Jobs](/docs/concepts/workloads/controllers/ttlafterfinished/), and resources
that have expired or failed.
-->
Kubernetes 使用垃圾收集机制来清理资源,例如:
[未使用的容器和镜像](/zh-cn/docs/concepts/architecture/garbage-collection/#containers-images)、
[失败的 Pod](/zh-cn/docs/concepts/workloads/pods/pod-lifecycle/#pod-garbage-collection)、
[目标资源拥有的对象](/zh-cn/docs/concepts/overview/working-with-objects/owners-dependents/)、
[已完成的 Job](/zh-cn/docs/concepts/workloads/controllers/ttlafterfinished/)、
过期或出错的资源。