Skip to content

Commit

Permalink
Merge pull request kubernetes#49110 from qlijin/2022-09-14-pod-has-ne…
Browse files Browse the repository at this point in the history
…twork-condition.md-sync

[zh-cn] sync 2022-09-14-pod-has-network-condition.md
  • Loading branch information
k8s-ci-robot authored Dec 18, 2024
2 parents 3b61db7 + 07b41c0 commit 33962ec
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions content/zh-cn/blog/_posts/2022-09-14-pod-has-network-condition.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,18 @@ layout: blog
title: 'Kubernetes 1.25:Pod 新增 PodHasNetwork 状况'
date: 2022-09-14
slug: pod-has-network-condition
author: >
Deep Debroy (Apple)
---
<!--
layout: blog
title: 'Kubernetes 1.25: PodHasNetwork Condition for Pods'
date: 2022-09-14
slug: pod-has-network-condition
author: >
Deep Debroy (Apple)
-->

<!--
**Author:**
Deep Debroy (Apple)
-->
**作者:**
Deep Debroy (Apple)

<!--
Kubernetes 1.25 introduces Alpha support for a new kubelet-managed pod condition
in the status field of a pod: `PodHasNetwork`. The kubelet, for a worker node,
Expand All @@ -43,6 +40,21 @@ Kubernetes 1.25 引入了对 kubelet 所管理的新的 Pod 状况 `PodHasNetwor
状况来准确生成服务水平指标(Service Level Indicator,SLI)。
某些管理底层 Pod 的 Operator 或控制器可以利用 `PodHasNetwork` 状况来优化 Pod 反复出现失败时要执行的操作。

<!--
### Updates for Kubernetes 1.28
The `PodHasNetwork` condition has been renamed to `PodReadyToStartContainers`.
Alongside that change, the feature gate `PodHasNetworkCondition` has been replaced by
`PodReadyToStartContainersCondition`. You need to set `PodReadyToStartContainersCondition`
to true in order to use the new feature in v1.28.0 and later.
-->
### Kubernetes 1.28 更新内容

`PodHasNetwork` 状况已更名为 `PodReadyToStartContainers`。与此变更同步的是,特性门控
`PodHasNetworkCondition` 已被替换为 `PodReadyToStartContainersCondition`
你需要将 `PodReadyToStartContainersCondition` 设置为 true,
才能在 v1.28.0 及更高版本中使用这一新特性。

<!--
### How is this different from the existing Initialized condition reported for pods?
Expand Down

0 comments on commit 33962ec

Please sign in to comment.