@@ -4,7 +4,6 @@ content_type: task
4
4
min-kubernetes-server-version : 1.5
5
5
---
6
6
<!--
7
- ---
8
7
reviewers:
9
8
- davidopp
10
9
- mml
@@ -13,7 +12,6 @@ reviewers:
13
12
title: Safely Drain a Node
14
13
content_type: task
15
14
min-kubernetes-server-version: 1.5
16
- ---
17
15
-->
18
16
19
17
<!-- overview -->
@@ -264,7 +262,14 @@ eviction API will never return anything other than 429 or 500.
264
262
For example: this can happen if ReplicaSet is creating Pods for your application but
265
263
the replacement Pods do not become `Ready`. You can also see similar symptoms if the
266
264
last Pod evicted has a very long termination grace period.
265
+ -->
266
+ ## 驱逐阻塞
267
267
268
+ 在某些情况下,应用程序可能会到达一个中断状态,除了 429 或 500 之外,它将永远不会返回任何内容。
269
+ 例如 ReplicaSet 创建的替换 Pod 没有变成就绪状态,或者被驱逐的最后一个
270
+ Pod 有很长的终止宽限期,就会发生这种情况。
271
+
272
+ <!--
268
273
In this case, there are two potential solutions:
269
274
270
275
- Abort or pause the automated operation. Investigate the reason for the stuck application,
@@ -275,28 +280,19 @@ In this case, there are two potential solutions:
275
280
Kubernetes does not specify what the behavior should be in this case; it is up to the
276
281
application owners and cluster owners to establish an agreement on behavior in these cases.
277
282
-->
278
- ## 驱逐阻塞
279
-
280
- 在某些情况下,应用程序可能会到达一个中断状态,除了 429 或 500 之外,它将永远不会返回任何内容。
281
- 例如 ReplicaSet 创建的替换 Pod 没有变成就绪状态,或者被驱逐的最后一个
282
- Pod 有很长的终止宽限期,就会发生这种情况。
283
-
284
283
在这种情况下,有两种可能的解决方案:
285
284
286
285
- 中止或暂停自动操作。调查应用程序卡住的原因,并重新启动自动化。
287
- - 经过适当的长时间等待后, 从集群中删除 Pod 而不是使用驱逐 API。
286
+ - 经过适当的长时间等待后,从集群中删除 Pod 而不是使用驱逐 API。
288
287
289
288
Kubernetes 并没有具体说明在这种情况下应该采取什么行为,
290
289
这应该由应用程序所有者和集群所有者紧密沟通,并达成对行动一致意见。
291
290
292
291
## {{% heading "whatsnext" %}}
293
292
294
-
295
293
<!--
296
294
* Follow steps to protect your application by [configuring a Pod Disruption Budget](/docs/tasks/run-application/configure-pdb/).
297
- * Learn more about [maintenance on a node](/docs/tasks/administer-cluster/cluster-management/#maintenance-on-a-node).
298
- -->
295
+ -->
299
296
* 执行[ 配置 PDB] ( /zh/docs/tasks/run-application/configure-pdb/ ) 中的各个步骤,
300
297
保护你的应用
301
- * 进一步了解[ 节点维护] ( /zh/docs/tasks/administer-cluster/cluster-management/#maintenance-on-a-node ) 。
302
298
0 commit comments