[zh] Update all md documents in the kubeadm
Signed-off-by: Gao Qian <gaoq.jy@fujitsu.com>
This commit is contained in:
parent
9852829d1d
commit
ede38eadce
|
|
@ -55,6 +55,8 @@ Services that you are planning to run.
|
|||
从 `2000::/3` 中选择一个全局的单播地址块。你不需要将集群的 IP 地址范围路由
|
||||
到公众互联网。
|
||||
|
||||
所分配的 IP 地址数量应该与你计划运行的 Pod 和 Service 的数量相适应。
|
||||
|
||||
{{< note >}}
|
||||
<!--
|
||||
If you are upgrading an existing cluster with the `kubeadm upgrade` command,
|
||||
|
|
|
|||
|
|
@ -409,8 +409,8 @@ Install `kubeadm`, `kubelet`, `kubectl` and add a `kubelet` systemd service:
|
|||
RELEASE="$(curl -sSL https://dl.k8s.io/release/stable.txt)"
|
||||
ARCH="amd64"
|
||||
cd $DOWNLOAD_DIR
|
||||
sudo curl -L --remote-name-all https://storage.googleapis.com/kubernetes-release/release/${RELEASE}/bin/linux/${ARCH}/{kubeadm,kubelet,kubectl}
|
||||
sudo chmod +x {kubeadm,kubelet,kubectl}
|
||||
sudo curl -L --remote-name-all https://dl.k8s.io/release/${RELEASE}/bin/linux/${ARCH}/{kubeadm,kubelet}
|
||||
sudo chmod +x {kubeadm,kubelet}
|
||||
|
||||
RELEASE_VERSION="v0.4.0"
|
||||
curl -sSL "https://raw.githubusercontent.com/kubernetes/release/${RELEASE_VERSION}/cmd/kubepkg/templates/latest/deb/kubelet/lib/systemd/system/kubelet.service" | sed "s:/usr/bin:${DOWNLOAD_DIR}:g" | sudo tee /etc/systemd/system/kubelet.service
|
||||
|
|
@ -419,8 +419,10 @@ curl -sSL "https://raw.githubusercontent.com/kubernetes/release/${RELEASE_VERSIO
|
|||
```
|
||||
|
||||
<!--
|
||||
Install `kubectl` by following the instructions on [Install Tools page](/docs/tasks/tools/#kubectl).
|
||||
Enable and start `kubelet`:
|
||||
-->
|
||||
请参照[安装工具页面](/zh-cn/docs/tasks/tools/#kubectl)的说明安装 `kubelet`。
|
||||
激活并启动 `kubelet`:
|
||||
|
||||
```bash
|
||||
|
|
|
|||
|
|
@ -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 的配置文件进行自定义。
|
||||
|
||||
<!--
|
||||
* Each host must have systemd and a bash compatible shell installed.
|
||||
* Each host must [have a container runtime, kubelet, and kubeadm installed](/docs/setup/production-environment/tools/kubeadm/install-kubeadm/).
|
||||
-->
|
||||
* 每个主机必须安装 systemd 和 bash 兼容的 shell。
|
||||
* 每台主机必须[安装有容器运行时、kubelet 和 kubeadm](/zh-cn/docs/setup/production-environment/tools/kubeadm/install-kubeadm/)。
|
||||
|
||||
<!--
|
||||
* Each host should have access to the Kubernetes container image registry (`registry.k8s.io`) or list/pull the required etcd image using
|
||||
`kubeadm config images list/pull`. This guide will setup etcd instances as
|
||||
[static pods](/docs/tasks/configure-pod-container/static-pod/) managed by a kubelet.
|
||||
-->
|
||||
* 每个主机都应该能够访问 Kubernetes 容器镜像仓库 (registry.k8s.io),
|
||||
或者使用 `kubeadm config images list/pull` 列出/拉取所需的 etcd 镜像。
|
||||
本指南将把 etcd 实例设置为由 kubelet 管理的[静态 Pod](/zh-cn/docs/tasks/configure-pod-container/static-pod/)。
|
||||
<!--
|
||||
* Some infrastructure to copy files between hosts. For example `ssh` and `scp` can satisfy this requirement.
|
||||
-->
|
||||
|
|
@ -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 \
|
||||
|
|
|
|||
|
|
@ -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` 文件时会发生错误。
|
||||
|
||||
<!--
|
||||
## `coredns` is stuck in the `Pending` state
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue