[zh] Add a glossary: pod-template.md
parent
7f83a3ae4c
commit
794f09a4a3
|
@ -0,0 +1,54 @@
|
|||
---
|
||||
title: PodTemplate
|
||||
id: pod-template
|
||||
date: 2024-10-13
|
||||
short_description: >
|
||||
创建 Pod 所用的模板。
|
||||
|
||||
aka:
|
||||
- Pod 模板
|
||||
tags:
|
||||
- core-object
|
||||
---
|
||||
<!--
|
||||
title: PodTemplate
|
||||
id: pod-template
|
||||
date: 2024-10-13
|
||||
short_description: >
|
||||
A template for creating Pods.
|
||||
|
||||
aka:
|
||||
- pod template
|
||||
tags:
|
||||
- core-object
|
||||
-->
|
||||
|
||||
<!--
|
||||
An API object that defines a template for creating {{< glossary_tooltip text="Pods" term_id="pod" >}}.
|
||||
The PodTemplate API is also embedded in API definitions for workload management, such as
|
||||
{{< glossary_tooltip text="Deployment" term_id="deployment" >}} or
|
||||
{{< glossary_tooltip text="StatefulSets" term_id="StatefulSet" >}}.
|
||||
-->
|
||||
这个 API 对象定义了创建 {{< glossary_tooltip text="Pod" term_id="pod" >}} 时所用的模板。
|
||||
PodTemplate API 也被嵌入在工作负载管理的 API 定义中,例如
|
||||
{{< glossary_tooltip text="Deployment" term_id="deployment" >}} 或
|
||||
{{< glossary_tooltip text="StatefulSet" term_id="StatefulSet" >}}。
|
||||
|
||||
<!--more-->
|
||||
|
||||
<!--
|
||||
Pod templates allow you to define common metadata (such as labels, or a template for the name of a
|
||||
new Pod) as well as to specify a pod's desired state.
|
||||
[Workload management](/docs/concepts/workloads/controllers/) controllers use Pod templates
|
||||
(embedded into another object, such as a Deployment or StatefulSet)
|
||||
to define and manage one or more {{< glossary_tooltip text="Pods" term_id="pod" >}}.
|
||||
When there can be multiple Pods based on the same template, these are called
|
||||
{{< glossary_tooltip term_id="replica" text="replicas" >}}.
|
||||
Although you can create a PodTemplate object directly, you rarely need to do so.
|
||||
-->
|
||||
Pod 模板允许你定义常见的元数据(例如标签,或新 Pod 名称的模板)以及 Pod 的期望状态。
|
||||
[工作负载管理](/zh-cn/docs/concepts/workloads/controllers/)控制器使用 Pod 模板
|
||||
(嵌入到另一个对象中,例如 Deployment 或 StatefulSet)
|
||||
来定义和管理一个或多个 {{< glossary_tooltip text="Pod" term_id="pod" >}}。
|
||||
当多个 Pod 基于同一个模板时,这些 Pod 称为{{< glossary_tooltip term_id="replica" text="副本" >}}。
|
||||
尽管你可以直接创建 PodTemplate 对象,但通常不需要这样做。
|
Loading…
Reference in New Issue