You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -176,14 +176,14 @@ You must set the `.spec.selector` field of a StatefulSet to match the labels of
176
176
-->
177
177
你必须设置 StatefulSet 的 `.spec.selector` 字段,使之匹配其在
178
178
`.spec.template.metadata.labels`中设置的标签。
179
-
未指定匹配的 Pod 选择器将在创建 StatefulSet 期间导致验证错误。
179
+
未指定匹配的 Pod 选择算符将在创建 StatefulSet 期间导致验证错误。
180
180
181
181
<!--
182
182
### Volume Claim Templates
183
183
184
184
You can set the `.spec.volumeClaimTemplates` which can provide stable storage using [PersistentVolumes](/docs/concepts/storage/persistent-volumes/) provisioned by a PersistentVolume Provisioner.
185
185
-->
186
-
### 卷申领模版 {#volume-claim-templates}
186
+
### 卷申领模板 {#volume-claim-templates}
187
187
188
188
你可以设置 `.spec.volumeClaimTemplates`,
189
189
它可以使用 PersistentVolume 制备程序所准备的
@@ -219,7 +219,7 @@ regardless of which node it's (re)scheduled on.
219
219
## Pod 标识 {#pod-identity}
220
220
221
221
StatefulSet Pod 具有唯一的标识,该标识包括顺序标识、稳定的网络标识和稳定的存储。
222
-
该标识和 Pod 是绑定的,不管它被调度在哪个节点上。
222
+
该标识和 Pod 是绑定的,与该 Pod 调度到哪个节点上无关。
223
223
224
224
<!--
225
225
### Ordinal Index
@@ -229,8 +229,8 @@ assigned an integer ordinal, from 0 up through N-1, that is unique over the Set.
229
229
-->
230
230
### 有序索引 {#ordinal-index}
231
231
232
-
对于具有 N 个副本的 StatefulSet,StatefulSet 中的每个 Pod 将被分配一个整数序号,
233
-
从 0 到 N-1,该序号在 StatefulSet 上是唯一的。
232
+
对于具有 N 个副本的 StatefulSet,该 StatefulSet 中的每个 Pod 将被分配一个从 0 到 N-1
233
+
的整数序号,该序号在此 StatefulSet 上是唯一的。
234
234
235
235
<!--
236
236
### Stable Network ID
@@ -254,7 +254,7 @@ StatefulSet 中的每个 Pod 根据 StatefulSet 的名称和 Pod 的序号派生
`$(pod 名称).$(所属服务的 DNS 域名)`,其中所属服务由 StatefulSet 的 `serviceName` 域来设定。
260
260
@@ -281,7 +281,7 @@ responsible for the network identity of the pods.
281
281
负缓存 (在 DNS 中较为常见) 意味着之前失败的查询结果会被记录和重用至少若干秒钟,
282
282
即使 Pod 已经正常运行了也是如此。
283
283
284
-
如果需要在 Pod 被创建之后及时发现它们,有以下选项:
284
+
如果需要在 Pod 被创建之后及时发现它们,可使用以下选项:
285
285
286
286
- 直接查询 Kubernetes API(比如,利用 watch 机制)而不是依赖于 DNS 查询
287
287
- 缩短 Kubernetes DNS 驱动的缓存时长(通常这意味着修改 CoreDNS 的 ConfigMap,目前缓存时长为 30 秒)
@@ -363,8 +363,8 @@ the StatefulSet.
363
363
364
364
* 对于包含 N 个 副本的 StatefulSet,当部署 Pod 时,它们是依次创建的,顺序为 `0..N-1`。
365
365
* 当删除 Pod 时,它们是逆序终止的,顺序为 `N-1..0`。
366
-
* 在将缩放操作应用到 Pod 之前,它前面的所有 Pod 必须是 Running 和 Ready 状态。
367
-
* 在 Pod 终止之前,所有的继任者必须完全关闭。
366
+
* 在将扩缩操作应用到 Pod 之前,它前面的所有 Pod 必须是 Running 和 Ready 状态。
367
+
* 在一个 Pod 终止之前,所有的继任者必须完全关闭。
368
368
369
369
<!--
370
370
The StatefulSet should not specify a `pod.Spec.TerminationGracePeriodSeconds` of 0. This practice is unsafe and strongly discouraged. For further explanation, please refer to [force deleting StatefulSet Pods](/docs/tasks/run-application/force-delete-stateful-set-pod/).
@@ -395,7 +395,7 @@ is fully shutdown and deleted. If web-0 were to fail after web-2 has been termin
395
395
is completely shutdown, but prior to web-1's termination, web-1 would not be terminated
0 commit comments