@@ -3,21 +3,18 @@ layout: blog
3
3
title : ' Kubernetes 1.25:Pod 新增 PodHasNetwork 状况'
4
4
date : 2022-09-14
5
5
slug : pod-has-network-condition
6
+ author : >
7
+ Deep Debroy (Apple)
6
8
---
7
9
<!--
8
10
layout: blog
9
11
title: 'Kubernetes 1.25: PodHasNetwork Condition for Pods'
10
12
date: 2022-09-14
11
13
slug: pod-has-network-condition
14
+ author: >
15
+ Deep Debroy (Apple)
12
16
-->
13
17
14
- <!--
15
- **Author:**
16
- Deep Debroy (Apple)
17
- -->
18
- ** 作者:**
19
- Deep Debroy (Apple)
20
-
21
18
<!--
22
19
Kubernetes 1.25 introduces Alpha support for a new kubelet-managed pod condition
23
20
in the status field of a pod: `PodHasNetwork`. The kubelet, for a worker node,
@@ -43,6 +40,21 @@ Kubernetes 1.25 引入了对 kubelet 所管理的新的 Pod 状况 `PodHasNetwor
43
40
状况来准确生成服务水平指标(Service Level Indicator,SLI)。
44
41
某些管理底层 Pod 的 Operator 或控制器可以利用 ` PodHasNetwork ` 状况来优化 Pod 反复出现失败时要执行的操作。
45
42
43
+ <!--
44
+ ### Updates for Kubernetes 1.28
45
+
46
+ The `PodHasNetwork` condition has been renamed to `PodReadyToStartContainers`.
47
+ Alongside that change, the feature gate `PodHasNetworkCondition` has been replaced by
48
+ `PodReadyToStartContainersCondition`. You need to set `PodReadyToStartContainersCondition`
49
+ to true in order to use the new feature in v1.28.0 and later.
50
+ -->
51
+ ### Kubernetes 1.28 更新内容
52
+
53
+ ` PodHasNetwork ` 状况已更名为 ` PodReadyToStartContainers ` 。与此变更同步的是,特性门控
54
+ ` PodHasNetworkCondition ` 已被替换为 ` PodReadyToStartContainersCondition ` 。
55
+ 你需要将 ` PodReadyToStartContainersCondition ` 设置为 true,
56
+ 才能在 v1.28.0 及更高版本中使用这一新特性。
57
+
46
58
<!--
47
59
### How is this different from the existing Initialized condition reported for pods?
48
60
0 commit comments