Skip to content

Commit 63110f1

Browse files
committed
sync container-runtimes dual-stack-support high-availability sysctl-cluster
1 parent 98861dd commit 63110f1

File tree

4 files changed

+38
-35
lines changed

4 files changed

+38
-35
lines changed

content/zh-cn/docs/setup/production-environment/container-runtimes.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -240,18 +240,6 @@ the `cgroupDriver` field under `KubeletConfiguration`, kubeadm defaults it to `s
240240
`KubeletConfiguration` 下设置 `cgroupDriver` 字段,kubeadm 默认使用 `systemd`。
241241
{{< /note >}}
242242

243-
<!--
244-
In Kubernetes v1.28, with the `KubeletCgroupDriverFromCRI`
245-
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
246-
enabled and a container runtime that supports the `RuntimeConfig` CRI RPC,
247-
the kubelet automatically detects the appropriate cgroup driver from the runtime,
248-
and ignores the `cgroupDriver` setting within the kubelet configuration.
249-
-->
250-
在 Kubernetes v1.28 中,启用 `KubeletCgroupDriverFromCRI`
251-
[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)结合支持
252-
`RuntimeConfig` CRI RPC 的容器运行时,kubelet 会自动从运行时检测适当的 Cgroup
253-
驱动程序,并忽略 kubelet 配置中的 `cgroupDriver` 设置。
254-
255243
<!--
256244
If you configure `systemd` as the cgroup driver for the kubelet, you must also
257245
configure `systemd` as the cgroup driver for the container runtime. Refer to
@@ -263,6 +251,18 @@ the documentation for your container runtime for instructions. For example:
263251
* [containerd](#containerd-systemd)
264252
* [CRI-O](#cri-o)
265253

254+
<!--
255+
In Kubernetes {{< skew currentVersion >}}, with the `KubeletCgroupDriverFromCRI`
256+
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
257+
enabled and a container runtime that supports the `RuntimeConfig` CRI RPC,
258+
the kubelet automatically detects the appropriate cgroup driver from the runtime,
259+
and ignores the `cgroupDriver` setting within the kubelet configuration.
260+
-->
261+
在 Kubernetes {{< skew currentVersion >}} 中,启用 `KubeletCgroupDriverFromCRI`
262+
[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)结合支持
263+
`RuntimeConfig` CRI RPC 的容器运行时,kubelet 会自动从运行时检测适当的 Cgroup
264+
驱动程序,并忽略 kubelet 配置中的 `cgroupDriver` 设置。
265+
266266
{{< caution >}}
267267
<!--
268268
Changing the cgroup driver of a Node that has joined a cluster is a sensitive operation.

content/zh-cn/docs/setup/production-environment/tools/kubeadm/dual-stack-support.md

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -92,29 +92,30 @@ kubeadm init --pod-network-cidr=10.244.0.0/16,2001:db8:42:0::/56 --service-cidr=
9292

9393
<!--
9494
To make things clearer, here is an example kubeadm
95-
[configuration file](/docs/reference/config-api/kubeadm-config.v1beta3/)
95+
[configuration file](/docs/reference/config-api/kubeadm-config.v1beta4/)
9696
`kubeadm-config.yaml` for the primary dual-stack control plane node.
9797
-->
9898
为了更便于理解,参看下面的名为 `kubeadm-config.yaml` 的 kubeadm
99-
[配置文件](/zh-cn/docs/reference/config-api/kubeadm-config.v1beta3/)
99+
[配置文件](/zh-cn/docs/reference/config-api/kubeadm-config.v1beta4/)
100100
该文件用于双协议栈控制面的主控制节点。
101101

102102
```yaml
103103
---
104-
apiVersion: kubeadm.k8s.io/v1beta3
104+
apiVersion: kubeadm.k8s.io/v1beta4
105105
kind: ClusterConfiguration
106106
networking:
107107
podSubnet: 10.244.0.0/16,2001:db8:42:0::/56
108108
serviceSubnet: 10.96.0.0/16,2001:db8:42:1::/112
109109
---
110-
apiVersion: kubeadm.k8s.io/v1beta3
110+
apiVersion: kubeadm.k8s.io/v1beta4
111111
kind: InitConfiguration
112112
localAPIEndpoint:
113113
advertiseAddress: "10.100.0.1"
114114
bindPort: 6443
115115
nodeRegistration:
116116
kubeletExtraArgs:
117-
node-ip: 10.100.0.2,fd00:1:2:3::2
117+
- name: "node-ip"
118+
value: "10.100.0.2,fd00:1:2:3::2"
118119
```
119120
120121
<!--
@@ -153,15 +154,15 @@ The `--apiserver-advertise-address` flag does not support dual-stack.
153154

154155
Before joining a node, make sure that the node has IPv6 routable network interface and allows IPv6 forwarding.
155156

156-
Here is an example kubeadm [configuration file](/docs/reference/config-api/kubeadm-config.v1beta3/)
157+
Here is an example kubeadm [configuration file](/docs/reference/config-api/kubeadm-config.v1beta4/)
157158
`kubeadm-config.yaml` for joining a worker node to the cluster.
158159
-->
159160
### 向双协议栈集群添加节点 {#join-a-node-to-dual-stack-cluster}
160161

161162
在添加节点之前,请确保该节点具有 IPv6 可路由的网络接口并且启用了 IPv6 转发。
162163

163164
下面的名为 `kubeadm-config.yaml` 的 kubeadm
164-
[配置文件](/zh-cn/docs/reference/config-api/kubeadm-config.v1beta3/)
165+
[配置文件](/zh-cn/docs/reference/config-api/kubeadm-config.v1beta4/)
165166
示例用于向集群中添加工作节点。
166167

167168
<!--
@@ -179,22 +180,23 @@ discovery:
179180
# 请更改上面的认证信息,使之与你的集群中实际使用的令牌和 CA 证书匹配
180181
nodeRegistration:
181182
kubeletExtraArgs:
182-
node-ip: 10.100.0.3,fd00:1:2:3::3
183+
- name: "node-ip"
184+
value: "10.100.0.2,fd00:1:2:3::3"
183185
```
184186

185187
<!--
186-
Also, here is an example kubeadm [configuration file](/docs/reference/config-api/kubeadm-config.v1beta3/)
188+
Also, here is an example kubeadm [configuration file](/docs/reference/config-api/kubeadm-config.v1beta4/)
187189
`kubeadm-config.yaml` for joining another control plane node to the cluster.
188190
-->
189191
下面的名为 `kubeadm-config.yaml` 的 kubeadm
190-
[配置文件](/zh-cn/docs/reference/config-api/kubeadm-config.v1beta3/)
192+
[配置文件](/zh-cn/docs/reference/config-api/kubeadm-config.v1beta4/)
191193
示例用于向集群中添加另一个控制面节点。
192194

193195
<!--
194196
# change auth info above to match the actual token and CA certificate hash for your cluster
195197
-->
196198
```yaml
197-
apiVersion: kubeadm.k8s.io/v1beta3
199+
apiVersion: kubeadm.k8s.io/v1beta4
198200
kind: JoinConfiguration
199201
controlPlane:
200202
localAPIEndpoint:
@@ -209,7 +211,8 @@ discovery:
209211
# 请更改上面的认证信息,使之与你的集群中实际使用的令牌和 CA 证书匹配
210212
nodeRegistration:
211213
kubeletExtraArgs:
212-
node-ip: 10.100.0.4,fd00:1:2:3::4
214+
- name: "node-ip"
215+
value: "10.100.0.2,fd00:1:2:3::4"
213216
```
214217

215218
<!--
@@ -241,15 +244,15 @@ You can deploy a single-stack cluster that has the dual-stack networking feature
241244

242245
<!--
243246
To make things more clear, here is an example kubeadm
244-
[configuration file](/docs/reference/config-api/kubeadm-config.v1beta3/)
247+
[configuration file](/docs/reference/config-api/kubeadm-config.v1beta4/)
245248
`kubeadm-config.yaml` for the single-stack control plane node.
246249
-->
247250
为了更便于理解,参看下面的名为 `kubeadm-config.yaml` 的 kubeadm
248-
[配置文件](/zh-cn/docs/reference/config-api/kubeadm-config.v1beta3/)示例,
251+
[配置文件](/zh-cn/docs/reference/config-api/kubeadm-config.v1beta4/)示例,
249252
该文件用于单协议栈控制面节点。
250253

251254
```yaml
252-
apiVersion: kubeadm.k8s.io/v1beta3
255+
apiVersion: kubeadm.k8s.io/v1beta4
253256
kind: ClusterConfiguration
254257
networking:
255258
podSubnet: 10.244.0.0/16
@@ -261,8 +264,8 @@ networking:
261264
<!--
262265
* [Validate IPv4/IPv6 dual-stack](/docs/tasks/network/validate-dual-stack) networking
263266
* Read about [Dual-stack](/docs/concepts/services-networking/dual-stack/) cluster networking
264-
* Learn more about the kubeadm [configuration format](/docs/reference/config-api/kubeadm-config.v1beta3/)
267+
* Learn more about the kubeadm [configuration format](/docs/reference/config-api/kubeadm-config.v1beta4/)
265268
-->
266269
* [验证 IPv4/IPv6 双协议栈](/zh-cn/docs/tasks/network/validate-dual-stack)联网
267270
* 阅读[双协议栈](/zh-cn/docs/concepts/services-networking/dual-stack/)集群网络
268-
* 进一步了解 kubeadm [配置格式](/zh-cn/docs/reference/config-api/kubeadm-config.v1beta3/)
271+
* 进一步了解 kubeadm [配置格式](/zh-cn/docs/reference/config-api/kubeadm-config.v1beta4/)

content/zh-cn/docs/setup/production-environment/tools/kubeadm/high-availability.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,13 +310,13 @@ option. Your cluster requirements may need a different configuration.
310310
{{< note >}}
311311
<!--
312312
The `kubeadm init` flags `--config` and `--certificate-key` cannot be mixed, therefore if you want
313-
to use the [kubeadm configuration](/docs/reference/config-api/kubeadm-config.v1beta3/)
313+
to use the [kubeadm configuration](/docs/reference/config-api/kubeadm-config.v1beta4/)
314314
you must add the `certificateKey` field in the appropriate config locations
315315
(under `InitConfiguration` and `JoinConfiguration: controlPlane`).
316316
-->
317317
在使用 `kubeadm init` 时,标记 `--config``--certificate-key` 不能混用,
318318
因此如果你要使用
319-
[kubeadm 配置](/zh-cn/docs/reference/config-api/kubeadm-config.v1beta3/),你必须在相应的配置结构
319+
[kubeadm 配置](/zh-cn/docs/reference/config-api/kubeadm-config.v1beta4/),你必须在相应的配置结构
320320
(位于 `InitConfiguration``JoinConfiguration: controlPlane`)添加 `certificateKey` 字段。
321321
{{< /note >}}
322322

@@ -512,7 +512,7 @@ in the kubeadm config file.
512512
513513
```yaml
514514
---
515-
apiVersion: kubeadm.k8s.io/v1beta3
515+
apiVersion: kubeadm.k8s.io/v1beta4
516516
kind: ClusterConfiguration
517517
kubernetesVersion: stable
518518
controlPlaneEndpoint: "LOAD_BALANCER_DNS:LOAD_BALANCER_PORT" # change this (see below)
@@ -534,7 +534,7 @@ in the kubeadm config file.
534534
535535
```yaml
536536
---
537-
apiVersion: kubeadm.k8s.io/v1beta3
537+
apiVersion: kubeadm.k8s.io/v1beta4
538538
kind: ClusterConfiguration
539539
kubernetesVersion: stable
540540
controlPlaneEndpoint: "LOAD_BALANCER_DNS:LOAD_BALANCER_PORT" # change this (see below)

content/zh-cn/docs/tasks/administer-cluster/sysctl-cluster.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,12 @@ The following sysctls are supported in the _safe_ set:
156156
There are some exceptions to the set of safe sysctls:
157157
158158
- The `net.*` sysctls are not allowed with host networking enabled.
159-
- The `net.ipv4.tcp_syncookies` sysctl is not namespaced on Linux kernel version 4.4 or lower.
159+
- The `net.ipv4.tcp_syncookies` sysctl is not namespaced on Linux kernel version 4.5 or lower.
160160
-->
161161
安全 sysctl 参数有一些例外:
162162

163163
- `net.*` sysctl 参数不允许在启用主机网络的情况下使用。
164-
- `net.ipv4.tcp_syncookies` sysctl 参数在 Linux 内核 4.4 或更低的版本中是无命名空间的。
164+
- `net.ipv4.tcp_syncookies` sysctl 参数在 Linux 内核 4.5 或更低的版本中是无命名空间的。
165165
{{< /note >}}
166166

167167
<!--

0 commit comments

Comments
 (0)