Skip to content

Commit a25d74a

Browse files
committed
[zh] Sync /cluster-administration/networking.md
1 parent 77367b7 commit a25d74a

File tree

2 files changed

+830
-0
lines changed

2 files changed

+830
-0
lines changed

content/zh-cn/docs/concepts/cluster-administration/networking.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,66 @@ Kubernetes 的宗旨就是在应用之间共享机器。
5858

5959
要了解 Kubernetes 网络模型,请参阅[此处](/zh-cn/docs/concepts/services-networking/)
6060

61+
<!--
62+
## Kubernetes IP address ranges
63+
64+
Kubernetes clusters require to allocate non-overlapping IP addresses for Pods, Services and Nodes,
65+
from a range of available addresses configured in the following components:
66+
-->
67+
## Kubernetes IP 地址范围 {#kubernetest-ip-address-ranges}
68+
69+
Kubernetes 集群需要从以下组件中配置的可用地址范围中为 Pod、Service 和 Node 分配不重叠的 IP 地址:
70+
71+
<!--
72+
- The network plugin is configured to assign IP addresses to Pods.
73+
- The kube-apiserver is configured to assign IP addresses to Services.
74+
- The kubelet or the cloud-controller-manager is configured to assign IP addresses to Nodes.
75+
-->
76+
- 网络插件配置为向 Pod 分配 IP 地址。
77+
- kube-apiserver 配置为向 Service 分配 IP 地址。
78+
- kubelet 或 cloud-controller-manager 配置为向 Node 分配 IP 地址。
79+
80+
<!--
81+
{{< figure src="/docs/images/kubernetes-cluster-network.svg" alt="A figure illustrating the different network ranges in a kubernetes cluster" class="diagram-medium" >}}
82+
-->
83+
{{< figure src="/zh-cn/docs/images/kubernetes-cluster-network.svg" alt="此图展示了 Kubernetes 集群中不同的网络范围" class="diagram-medium" >}}
84+
85+
<!--
86+
## Cluster networking types {#cluster-network-ipfamilies}
87+
88+
Kubernetes clusters, attending to the IP families configured, can be categorized into:
89+
-->
90+
## 集群网络类型 {#cluster-network-ipfamilies}
91+
92+
根据配置的 IP 协议族,Kubernetes 集群可以分为以下几类:
93+
94+
<!--
95+
- IPv4 only: The network plugin, kube-apiserver and kubelet/cloud-controller-manager are configured to assign only IPv4 addresses.
96+
- IPv6 only: The network plugin, kube-apiserver and kubelet/cloud-controller-manager are configured to assign only IPv6 addresses.
97+
- IPv4/IPv6 or IPv6/IPv4 [dual-stack](/docs/concepts/services-networking/dual-stack/):
98+
- The network plugin is configured to assign IPv4 and IPv6 addresses.
99+
- The kube-apiserver is configured to assign IPv4 and IPv6 addresses.
100+
- The kubelet or cloud-controller-manager is configured to assign IPv4 and IPv6 address.
101+
- All components must agree on the configured primary IP family.
102+
-->
103+
- 仅 IPv4:网络插件、kube-apiserver 和 kubelet/cloud-controller-manager 配置为仅分配 IPv4 地址。
104+
- 仅 IPv6:网络插件、kube-apiserver 和 kubelet/cloud-controller-manager 配置为仅分配 IPv6 地址。
105+
- IPv4/IPv6 或 IPv6/IPv4 [双协议栈](/zh-cn/docs/concepts/services-networking/dual-stack/)
106+
- 网络插件配置为分配 IPv4 和 IPv6 地址。
107+
- kube-apiserver 配置为分配 IPv4 和 IPv6 地址。
108+
- kubelet 或 cloud-controller-manager 配置为分配 IPv4 和 IPv6 地址。
109+
- 所有组件必须就配置的主要 IP 协议族达成一致。
110+
111+
<!--
112+
Kubernetes clusters only consider the IP families present on the Pods, Services and Nodes objects,
113+
independently of the existing IPs of the represented objects. Per example, a server or a pod can have multiple
114+
IP addresses on its interfaces, but only the IP addresses in `node.status.addresses` or `pod.status.ips` are
115+
considered for implementing the Kubernetes network model and defining the type of the cluster.
116+
-->
117+
Kubernetes 集群只考虑 Pod、Service 和 Node 对象中存在的 IP 协议族,而不考虑所表示对象的现有 IP。
118+
例如,服务器或 Pod 的接口上可以有多个 IP 地址,但只有 `node.status.addresses``pod.status.ips`
119+
中的 IP 地址被认为是实现 Kubernetes 网络模型和定义集群类型的。
120+
61121
<!--
62122
## How to implement the Kubernetes network model
63123

0 commit comments

Comments
 (0)