Skip to content

Commit 469a434

Browse files
authored
Merge pull request #49290 from windsonsea/tainty
[zh] Add text to: labels-annotations-taints/_index.md
2 parents 8f28f4a + 4accf31 commit 469a434

File tree

1 file changed

+209
-0
lines changed
  • content/zh-cn/docs/reference/labels-annotations-taints

1 file changed

+209
-0
lines changed

content/zh-cn/docs/reference/labels-annotations-taints/_index.md

Lines changed: 209 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4938,6 +4938,215 @@ Starting in v1.16, this annotation was removed in favor of
49384938
[Pod 优先级](/zh-cn/docs/concepts/scheduling-eviction/pod-priority-preemption/)。
49394939
{{< /note >}}
49404940
4941+
### jobset.sigs.k8s.io/jobset-name
4942+
4943+
<!--
4944+
Type: Label, Annotation
4945+
4946+
Example: `jobset.sigs.k8s.io/jobset-name: "my-jobset"`
4947+
4948+
Used on: Jobs, Pods
4949+
4950+
This label/annotation is used to store the name of the JobSet that a Job or Pod belongs to.
4951+
[JobSet](https://jobset.sigs.k8s.io) is an extension API that you can deploy into your Kubernetes cluster.
4952+
-->
4953+
类别:标签、注解
4954+
4955+
例子:`jobset.sigs.k8s.io/jobset-name: "my-jobset"`
4956+
4957+
用于:Job、Pod
4958+
4959+
此标签/注解用于存储 Job 或 Pod 所属的 JobSet 的名称。
4960+
[JobSet](https://jobset.sigs.k8s.io) 是一个你可以部署到 Kubernetes 集群中的扩展 API。
4961+
4962+
### jobset.sigs.k8s.io/replicatedjob-replicas
4963+
4964+
<!--
4965+
Type: Label, Annotation
4966+
4967+
Example: `jobset.sigs.k8s.io/replicatedjob-replicas: "5"`
4968+
4969+
Used on: Jobs, Pods
4970+
4971+
This label/annotation specifies the number of replicas for a ReplicatedJob.
4972+
-->
4973+
类别:标签、注解
4974+
4975+
例子:`jobset.sigs.k8s.io/replicatedjob-replicas: "5"`
4976+
4977+
用于:Job、Pod
4978+
4979+
此标签/注解指定 ReplicatedJob 副本的数量。
4980+
4981+
### jobset.sigs.k8s.io/replicatedjob-name
4982+
4983+
<!--
4984+
Type: Label, Annotation
4985+
4986+
Example: `jobset.sigs.k8s.io/replicatedjob-name: "my-replicatedjob"`
4987+
4988+
Used on: Jobs, Pods
4989+
4990+
This label or annotation stores the name of the replicated job that this Job or Pod is part of.
4991+
-->
4992+
类别:标签、注解
4993+
4994+
例子:`jobset.sigs.k8s.io/replicatedjob-name: "my-replicatedjob"`
4995+
4996+
用于:Job、Pod
4997+
4998+
此标签或注解存储属于 Job 或 Pod 一部分的作业副本的名称。
4999+
5000+
### jobset.sigs.k8s.io/job-index
5001+
5002+
<!--
5003+
Type: Label, Annotation
5004+
5005+
Example: `jobset.sigs.k8s.io/job-index: "0"`
5006+
5007+
Used on: Jobs, Pods
5008+
5009+
This label/annotation is set by the JobSet controller on child Jobs and Pods. It contains the index of the Job replica within its parent ReplicatedJob.
5010+
-->
5011+
类别:标签、注解
5012+
5013+
例子:`jobset.sigs.k8s.io/job-index: "0"`
5014+
5015+
用于:Job、Pod
5016+
5017+
此标签/注解由子 Job 和 Pod 上的 JobSet 控制器进行设置。
5018+
它包含 Job 副本在其父 ReplicatedJob 中的索引。
5019+
5020+
### jobset.sigs.k8s.io/job-key
5021+
5022+
<!--
5023+
Type: Label, Annotation
5024+
5025+
Example: `jobset.sigs.k8s.io/job-key: "0f1e93893c4cb372080804ddb9153093cb0d20cefdd37f653e739c232d363feb"`
5026+
5027+
Used on: Jobs, Pods
5028+
5029+
The JobSet controller sets this label (and also an annotation with the same key) on child Jobs and
5030+
Pods of a JobSet. The value is the SHA256 hash of the namespaced Job name.
5031+
-->
5032+
类别:标签、注解
5033+
5034+
例子:`jobset.sigs.k8s.io/job-key: "0f1e93893c4cb372080804ddb9153093cb0d20cefdd37f653e739c232d363feb"`
5035+
5036+
用于:Job、Pod
5037+
5038+
JobSet 控制器在 JobSet 的子 Job 和 Pod 上设置此标签(以及具有相同键的注解)。
5039+
取值为命名空间内 Job 名称的 SHA256 哈希。
5040+
5041+
### alpha.jobset.sigs.k8s.io/exclusive-topology
5042+
5043+
<!--
5044+
Type: Annotation
5045+
5046+
Example: `alpha.jobset.sigs.k8s.io/exclusive-topology: "zone"`
5047+
5048+
Used on: JobSets, Jobs
5049+
5050+
You can set this label/annotation on a [JobSet](https://jobset.sigs.k8s.io) to ensure exclusive Job
5051+
placement per topology group. You can also define this label or annotation on a replicated job
5052+
template. Read the documentation for JobSet to learn more.
5053+
-->
5054+
类别:注解
5055+
5056+
例子:`alpha.jobset.sigs.k8s.io/exclusive-topology: "zone"`
5057+
5058+
用于:JobSet、Job
5059+
5060+
你可以在 [JobSet](https://jobset.sigs.k8s.io) 上设置此标签/注解,以确保每个拓扑组的独占 Job 调度。
5061+
你也可以在作业副本模板上定义此标签或注解。有关细节查阅 JobSet 文档。
5062+
5063+
### alpha.jobset.sigs.k8s.io/node-selector
5064+
5065+
<!--
5066+
Type: Annotation
5067+
5068+
Example: `alpha.jobset.sigs.k8s.io/node-selector: "true"`
5069+
5070+
Used on: Jobs, Pods
5071+
5072+
This label/annotation can be applied to a JobSet. When it's set, the JobSet controller modifies the Jobs and their corresponding Pods by adding node selectors and tolerations. This ensures exclusive job placement per topology domain, restricting the scheduling of these Pods to specific nodes based on the strategy.
5073+
-->
5074+
类别:注解
5075+
5076+
例子:`alpha.jobset.sigs.k8s.io/node-selector: "true"`
5077+
5078+
用于:Job、Pod
5079+
5080+
此标签/注解可以被应用到 JobSet。当此字段被设置时,
5081+
JobSet 控制器通过添加节点选择算符和容忍度来修改 Job 及其对应的 Pod。
5082+
这确保了每个拓扑域的作业独占调度,基于策略限制这些 Pod 调度到特定节点上。
5083+
5084+
### alpha.jobset.sigs.k8s.io/namespaced-job
5085+
5086+
<!--
5087+
Type: Label
5088+
5089+
Example: `alpha.jobset.sigs.k8s.io/namespaced-job: "default_myjobset-replicatedjob-0"`
5090+
5091+
Used on: Nodes
5092+
5093+
This label is either set manually or automatically (for example, a cluster autoscaler) on the nodes. When `alpha.jobset.sigs.k8s.io/node-selector` is set to `"true"`, the JobSet controller adds a nodeSelector to this node label (along with the toleration to the taint `alpha.jobset.sigs.k8s.io/no-schedule` disucssed next).
5094+
-->
5095+
类别:标签
5096+
5097+
例子:`alpha.jobset.sigs.k8s.io/namespaced-job: "default_myjobset-replicatedjob-0"`
5098+
5099+
用于:Node
5100+
5101+
此标签在节点上手动或自动设置(例如,集群自动扩缩器)。
5102+
`alpha.jobset.sigs.k8s.io/node-selector` 被设置为 `"true"` 时,
5103+
JobSet 控制器会向此节点标签添加 nodeSelector
5104+
(以及下一节讨论的针对 `alpha.jobset.sigs.k8s.io/no-schedule` 污点的容忍度)。
5105+
5106+
### alpha.jobset.sigs.k8s.io/no-schedule
5107+
5108+
<!--
5109+
Type: Taint
5110+
5111+
Example: `alpha.jobset.sigs.k8s.io/no-schedule: "NoSchedule"`
5112+
5113+
Used on: Nodes
5114+
5115+
This taint is either set manually or automatically (for example, a cluster autoscaler) on the nodes. When `alpha.jobset.sigs.k8s.io/node-selector` is set to `"true"`, the JobSet controller adds a toleration to this node taint (along with the node selector to the label `alpha.jobset.sigs.k8s.io/namespaced-job` disucssed previously).
5116+
-->
5117+
类别:污点
5118+
5119+
例子:`alpha.jobset.sigs.k8s.io/no-schedule: "NoSchedule"`
5120+
5121+
用于:Node
5122+
5123+
此污点在节点上手动或自动设置(例如,集群自动扩缩器)。
5124+
`alpha.jobset.sigs.k8s.io/node-selector` 设置为 `"true"` 时,
5125+
JobSet 控制器会向此节点污点添加容忍度
5126+
(以及上一节讨论的针对 `alpha.jobset.sigs.k8s.io/namespaced-job` 标签的节点选择算符)。
5127+
5128+
### jobset.sigs.k8s.io/coordinator
5129+
5130+
<!--
5131+
Type: Annotation, Label
5132+
5133+
Example: `jobset.sigs.k8s.io/coordinator: "myjobset-workers-0-0.headless-svc"`
5134+
5135+
Used on: Jobs, Pods
5136+
5137+
This annotation/label is used on Jobs and Pods to store a stable network endpoint where the coordinator
5138+
pod can be reached if the [JobSet](https://jobset.sigs.k8s.io) spec defines the `.spec.coordinator` field.
5139+
-->
5140+
类别:注解、标签
5141+
5142+
例子:`jobset.sigs.k8s.io/coordinator: "myjobset-workers-0-0.headless-svc"`
5143+
5144+
用于:Job、Pod
5145+
5146+
此注解/标签在 Job 和 Pod 上用于存储一个稳定的网络端点,
5147+
以便在 [JobSet](https://jobset.sigs.k8s.io) 规约定义 `.spec.coordinator` 字段时,
5148+
可以访问 `coordinator` Pod。
5149+
49415150
<!--
49425151
## Annotations used for audit
49435152
-->

0 commit comments

Comments
 (0)