Skip to content

Commit bd4a063

Browse files
authored
Merge pull request #48943 from windsonsea/podpla
[zh] Add a glossary: pod-template.md
2 parents 8762729 + 794f09a commit bd4a063

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
title: PodTemplate
3+
id: pod-template
4+
date: 2024-10-13
5+
short_description: >
6+
创建 Pod 所用的模板。
7+
8+
aka:
9+
- Pod 模板
10+
tags:
11+
- core-object
12+
---
13+
<!--
14+
title: PodTemplate
15+
id: pod-template
16+
date: 2024-10-13
17+
short_description: >
18+
A template for creating Pods.
19+
20+
aka:
21+
- pod template
22+
tags:
23+
- core-object
24+
-->
25+
26+
<!--
27+
An API object that defines a template for creating {{< glossary_tooltip text="Pods" term_id="pod" >}}.
28+
The PodTemplate API is also embedded in API definitions for workload management, such as
29+
{{< glossary_tooltip text="Deployment" term_id="deployment" >}} or
30+
{{< glossary_tooltip text="StatefulSets" term_id="StatefulSet" >}}.
31+
-->
32+
这个 API 对象定义了创建 {{< glossary_tooltip text="Pod" term_id="pod" >}} 时所用的模板。
33+
PodTemplate API 也被嵌入在工作负载管理的 API 定义中,例如
34+
{{< glossary_tooltip text="Deployment" term_id="deployment" >}} 或
35+
{{< glossary_tooltip text="StatefulSet" term_id="StatefulSet" >}}。
36+
37+
<!--more-->
38+
39+
<!--
40+
Pod templates allow you to define common metadata (such as labels, or a template for the name of a
41+
new Pod) as well as to specify a pod's desired state.
42+
[Workload management](/docs/concepts/workloads/controllers/) controllers use Pod templates
43+
(embedded into another object, such as a Deployment or StatefulSet)
44+
to define and manage one or more {{< glossary_tooltip text="Pods" term_id="pod" >}}.
45+
When there can be multiple Pods based on the same template, these are called
46+
{{< glossary_tooltip term_id="replica" text="replicas" >}}.
47+
Although you can create a PodTemplate object directly, you rarely need to do so.
48+
-->
49+
Pod 模板允许你定义常见的元数据(例如标签,或新 Pod 名称的模板)以及 Pod 的期望状态。
50+
[工作负载管理](/zh-cn/docs/concepts/workloads/controllers/)控制器使用 Pod 模板
51+
(嵌入到另一个对象中,例如 Deployment 或 StatefulSet)
52+
来定义和管理一个或多个 {{< glossary_tooltip text="Pod" term_id="pod" >}}。
53+
当多个 Pod 基于同一个模板时,这些 Pod 称为{{< glossary_tooltip term_id="replica" text="副本" >}}。
54+
尽管你可以直接创建 PodTemplate 对象,但通常不需要这样做。

0 commit comments

Comments
 (0)