From ede38eadced8fb8ae69170eab44e62cf276686f2 Mon Sep 17 00:00:00 2001 From: Gao Qian Date: Tue, 11 Oct 2022 06:55:24 -0400 Subject: [PATCH] [zh] Update all md documents in the kubeadm Signed-off-by: Gao Qian --- .../tools/kubeadm/dual-stack-support.md | 2 ++ .../tools/kubeadm/install-kubeadm.md | 6 ++++-- .../tools/kubeadm/setup-ha-etcd-with-kubeadm.md | 12 +++++++++--- .../tools/kubeadm/troubleshooting-kubeadm.md | 6 ------ 4 files changed, 15 insertions(+), 11 deletions(-) diff --git a/content/zh-cn/docs/setup/production-environment/tools/kubeadm/dual-stack-support.md b/content/zh-cn/docs/setup/production-environment/tools/kubeadm/dual-stack-support.md index 201e0e0134..62822f18dc 100644 --- a/content/zh-cn/docs/setup/production-environment/tools/kubeadm/dual-stack-support.md +++ b/content/zh-cn/docs/setup/production-environment/tools/kubeadm/dual-stack-support.md @@ -55,6 +55,8 @@ Services that you are planning to run. 从 `2000::/3` 中选择一个全局的单播地址块。你不需要将集群的 IP 地址范围路由 到公众互联网。 +所分配的 IP 地址数量应该与你计划运行的 Pod 和 Service 的数量相适应。 + {{< note >}} +请参照[安装工具页面](/zh-cn/docs/tasks/tools/#kubectl)的说明安装 `kubelet`。 激活并启动 `kubelet`: ```bash diff --git a/content/zh-cn/docs/setup/production-environment/tools/kubeadm/setup-ha-etcd-with-kubeadm.md b/content/zh-cn/docs/setup/production-environment/tools/kubeadm/setup-ha-etcd-with-kubeadm.md index 0df3785c3a..d78e0ea549 100644 --- a/content/zh-cn/docs/setup/production-environment/tools/kubeadm/setup-ha-etcd-with-kubeadm.md +++ b/content/zh-cn/docs/setup/production-environment/tools/kubeadm/setup-ha-etcd-with-kubeadm.md @@ -49,14 +49,20 @@ etcd cluster of three members that can be used by kubeadm during cluster creatio * Three hosts that can talk to each other over TCP ports 2379 and 2380. This document assumes these default ports. However, they are configurable through the kubeadm config file. --> * 三个可以通过 2379 和 2380 端口相互通信的主机。本文档使用这些作为默认端口。不过,它们可以通过 kubeadm 的配置文件进行自定义。 - * 每个主机必须安装 systemd 和 bash 兼容的 shell。 * 每台主机必须[安装有容器运行时、kubelet 和 kubeadm](/zh-cn/docs/setup/production-environment/tools/kubeadm/install-kubeadm/)。 - + +* 每个主机都应该能够访问 Kubernetes 容器镜像仓库 (registry.k8s.io), + 或者使用 `kubeadm config images list/pull` 列出/拉取所需的 etcd 镜像。 + 本指南将把 etcd 实例设置为由 kubelet 管理的[静态 Pod](/zh-cn/docs/tasks/configure-pod-container/static-pod/)。 @@ -368,7 +374,7 @@ on Kubernetes dual-stack support see [Dual-stack support with kubeadm](/docs/set ```shell docker run --rm -it \ --net host \ - -v /etc/kubernetes:/etc/kubernetes k8s.gcr.io/etcd:${ETCD_TAG} etcdctl \ + -v /etc/kubernetes:/etc/kubernetes registry.k8s.io/etcd:${ETCD_TAG} etcdctl \ --cert /etc/kubernetes/pki/etcd/peer.crt \ --key /etc/kubernetes/pki/etcd/peer.key \ --cacert /etc/kubernetes/pki/etcd/ca.crt \ diff --git a/content/zh-cn/docs/setup/production-environment/tools/kubeadm/troubleshooting-kubeadm.md b/content/zh-cn/docs/setup/production-environment/tools/kubeadm/troubleshooting-kubeadm.md index cc5303511c..9c7dfd5e06 100644 --- a/content/zh-cn/docs/setup/production-environment/tools/kubeadm/troubleshooting-kubeadm.md +++ b/content/zh-cn/docs/setup/production-environment/tools/kubeadm/troubleshooting-kubeadm.md @@ -236,12 +236,6 @@ Right after `kubeadm init` there should not be any pods in these states. RBAC 特权或使用较新的版本。请在 Pod Network 提供商的问题跟踪器中提交问题, 然后在此处分类问题。 -- 如果你安装的 Docker 版本早于 1.12.1,请在使用 `systemd` 来启动 `dockerd` 和重启 `docker` 时, - 删除 `MountFlags=slave` 选项。 - 你可以在 `/usr/lib/systemd/system/docker.service` 中看到 MountFlags。 - MountFlags 可能会干扰 Kubernetes 挂载的卷,并使 Pod 处于 `CrashLoopBackOff` 状态。 - 当 Kubernetes 不能找到 `var/run/secrets/kubernetes.io/serviceaccount` 文件时会发生错误。 -