Skip to content

Commit 219fc9a

Browse files
committed
[zh-cn] sync windows/_index.md dual-stack.md
field-selectors.md finalizers.md names.md Signed-off-by: xin.li <xin.li@daocloud.io>
1 parent 695642d commit 219fc9a

File tree

5 files changed

+96
-8
lines changed

5 files changed

+96
-8
lines changed

content/zh-cn/docs/concepts/overview/working-with-objects/field-selectors.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ weight: 70
1111

1212
<!--
1313
_Field selectors_ let you [select Kubernetes resources](/docs/concepts/overview/working-with-objects/kubernetes-objects) based on the value of one or more resource fields. Here are some examples of field selector queries:
14+
15+
_Field selectors_ let you select Kubernetes {{< glossary_tooltip text="objects" term_id="object" >}} based on the
16+
value of one or more resource fields. Here are some examples of field selector queries:
1417
-->
15-
“字段选择器(Field selectors)”允许你根据一个或多个资源字段的值
16-
[筛选 Kubernetes 资源](/zh-cn/docs/concepts/overview/working-with-objects/kubernetes-objects)
18+
“字段选择器(Field selectors)”允许你根据一个或多个资源字段的值筛选
19+
Kubernetes {{< glossary_tooltip text="对象" term_id="object" >}}
1720
下面是一些使用字段选择器查询的例子:
1821

1922
* `metadata.name=my-service`
@@ -23,7 +26,8 @@ _Field selectors_ let you [select Kubernetes resources](/docs/concepts/overview/
2326
<!--
2427
This `kubectl` command selects all Pods for which the value of the [`status.phase`](/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase) field is `Running`:
2528
-->
26-
下面这个 `kubectl` 命令将筛选出 [`status.phase`](/zh-cn/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase)
29+
下面这个 `kubectl` 命令将筛选出
30+
[`status.phase`](/zh-cn/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase)
2731
字段值为 `Running` 的所有 Pod:
2832

2933
```shell
@@ -36,7 +40,8 @@ Field selectors are essentially resource *filters*. By default, no selectors/fil
3640
-->
3741
字段选择器本质上是资源“过滤器(Filters)”。默认情况下,字段选择器/过滤器是未被应用的,
3842
这意味着指定类型的所有资源都会被筛选出来。
39-
这使得 `kubectl get pods``kubectl get pods --field-selector ""` 这两个 `kubectl` 查询是等价的。
43+
这使得 `kubectl get pods``kubectl get pods --field-selector ""`
44+
这两个 `kubectl` 查询是等价的。
4045

4146
{{< /note >}}
4247

content/zh-cn/docs/concepts/overview/working-with-objects/finalizers.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ weight: 80
88

99
{{<glossary_definition term_id="finalizer" length="long">}}
1010

11+
<!--
12+
You can use finalizers to control {{<glossary_tooltip text="garbage collection" term_id="garbage-collection">}}
13+
of {{< glossary_tooltip text="objects" term_id="object" >}} by alerting {{<glossary_tooltip text="controllers" term_id="controller">}}
14+
to perform specific cleanup tasks before deleting the target resource.
15+
-->
16+
你可以使用 Finalizers 来控制{{< glossary_tooltip text="对象" term_id="object" >}}的{{<glossary_tooltip text="垃圾回收" term_id="garbage-collection">}},
17+
方法是在删除目标资源之前提醒{{<glossary_tooltip text="控制器" term_id="controller">}}执行特定的清理任务。
18+
1119
<!--
1220
Finalizers don't usually specify the code to execute. Instead, they are
1321
typically lists of keys on a specific resource similar to annotations.

content/zh-cn/docs/concepts/overview/working-with-objects/names.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ weight: 30
1515
<!-- overview -->
1616

1717
<!--
18-
Each object in your cluster has a [_Name_](#names) that is unique for that type of resource.
18+
Each {{< glossary_tooltip text="object" term_id="object" >}} in your cluster has a [_Name_](#names) that is unique for that type of resource.
1919
Every Kubernetes object also has a [_UID_](#uids) that is unique across your whole cluster.
2020
2121
For example, you can only have one Pod named `myapp-1234` within the same [namespace](/docs/concepts/overview/working-with-objects/namespaces/), but you can have one Pod and one Deployment that are each named `myapp-1234`.
2222
-->
2323

24-
集群中的每一个对象都有一个[**名称**](#names)来标识在同类资源中的唯一性。
24+
集群中的每一个{{< glossary_tooltip text="对象" term_id="object" >}}都有一个[**名称**](#names)来标识在同类资源中的唯一性。
2525

2626
每个 Kubernetes 对象也有一个 [**UID**](#uids) 来标识在整个集群中的唯一性。
2727

content/zh-cn/docs/concepts/services-networking/dual-stack.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,18 @@ IPv6 CIDR 的一个例子:`fdXY:IJKL:MNOP:15::/64`
150150
(这里演示的是格式而非有效地址 - 请看 [RFC 4193](https://tools.ietf.org/html/rfc4193))。
151151
{{< /note >}}
152152

153+
{{< feature-state for_k8s_version="v1.27" state="alpha" >}}
154+
155+
<!--
156+
When using an external cloud provider, you can pass a dual-stack `--node-ip` value to
157+
kubelet if you enable the `CloudDualStackNodeIPs` feature gate in both kubelet and the
158+
external cloud provider. This is only supported for cloud providers that support dual
159+
stack clusters.
160+
-->
161+
使用外部云驱动时,如果你在 kubelet 和外部云提供商中都启用了
162+
`CloudDualStackNodeIPs` 特性门控,则可以将双栈 `--node-ip`
163+
值传递给 kubelet。此特性需要保证云提供商支持双栈集群。
164+
153165
<!--
154166
## Services
155167
-->
Lines changed: 65 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,71 @@
11
---
22
title: "Kubernetes 中的 Windows"
3-
weight: 50
3+
simple_list: true
4+
weight: 200
5+
description: >-
6+
Kubernetes 支持运行 Microsoft Windows 节点。
47
---
8+
59
<!--
610
title: "Windows in Kubernetes"
7-
weight: 50
11+
simple_list: true
12+
weight: 200 # late in list
13+
description: >-
14+
Kubernetes supports nodes that run Microsoft Windows.
815
-->
16+
17+
<!--
18+
Kubernetes supports worker {{< glossary_tooltip text="nodes" term_id="node" >}}
19+
running either Linux or Microsoft Windows.
20+
-->
21+
Kubernetes 支持运行 Linux 或 Microsoft Windows
22+
的工作{{< glossary_tooltip text="节点" term_id="node" >}}。
23+
24+
{{% thirdparty-content single="true" %}}
25+
26+
<!--
27+
The CNCF and its parent the Linux Foundation take a vendor-neutral approach
28+
towards compatibility. It is possible to join your [Windows server](https://www.microsoft.com/en-us/windows-server)
29+
as a worker node to a Kubernetes cluster.
30+
-->
31+
CNCF 及其母公司 Linux 基金会采用供应商中立的方法来实现兼容性。可以将你的
32+
[Windows 服务器](https://www.microsoft.com/en-us/windows-server)作为工作节点加入
33+
Kubernetes 集群。
34+
35+
<!--
36+
You can [install and set up kubectl on Windows](/docs/tasks/tools/install-kubectl-windows/)
37+
no matter what operating system you use within your cluster.
38+
39+
If you are using Windows nodes, you can read:
40+
-->
41+
无论你的集群使用什么操作系统,
42+
都可以[在 Windows 上安装和设置 kubectl](/zh-cn/docs/tasks/tools/install-kubectl-windows/)
43+
44+
如果你使用的是 Windows 节点,你可以阅读:
45+
46+
<!--
47+
* [Networking On Windows](/docs/concepts/services-networking/windows-networking/)
48+
* [Windows Storage In Kubernetes](/docs/concepts/storage/windows-storage/)
49+
* [Resource Management for Windows Nodes](/docs/concepts/configuration/windows-resource-management/)
50+
* [Configure RunAsUserName for Windows Pods and Containers](/docs/tasks/configure-pod-container/configure-runasusername/)
51+
* [Create A Windows HostProcess Pod](/docs/tasks/configure-pod-container/create-hostprocess-pod/)
52+
* [Configure Group Managed Service Accounts for Windows Pods and Containers](/docs/tasks/configure-pod-container/configure-gmsa/)
53+
* [Security For Windows Nodes](/docs/concepts/security/windows-security/)
54+
* [Windows Debugging Tips](/docs/tasks/debug/debug-cluster/windows/)
55+
* [Guide for Scheduling Windows Containers in Kubernetes](/docs/concepts/windows/user-guide)
56+
57+
or, for an overview, read:
58+
-->
59+
* [Windows 上的网络](/zh-cn/docs/concepts/services-networking/windows-networking/)
60+
* [Kubernetes 中的 Windows 存储](/zh-cn/docs/concepts/storage/windows-storage/)
61+
* [Windows 节点的资源管理](/zh-cn/docs/concepts/configuration/windows-resource-management/)
62+
* [为 Windows Pod 和容器配置 RunAsUserName](/zh-cn/docs/tasks/configure-pod-container/configure-runasusername/)
63+
* [创建 Windows HostProcess Pod](/zh-cn/docs/tasks/configure-pod-container/create-hostprocess-pod/)
64+
* [为 Windows Pod 和容器配置组托管服务帐户](/zh-cn/docs/tasks/configure-pod-container/configure-gmsa/)
65+
* [Windows 节点的安全性](/zh-cn/docs/concepts/security/windows-security/)
66+
* [Windows 调试技巧](/zh-cn/docs/tasks/debug/debug-cluster/windows/)
67+
* [在 Kubernetes 中调度 Windows 容器指南](/zh-cn/docs/concepts/windows/user-guide)
68+
69+
或者,要了解概览,请阅读:
70+
71+

0 commit comments

Comments
 (0)