[zh-cn] sync install-kubeadm configure-persistent-volume-storage

Signed-off-by: xin.li <xin.li@daocloud.io>
pull/37126/head
xin.li 2022-10-01 16:38:24 +08:00
parent 2fb4fc2387
commit f5bc19863a
2 changed files with 10 additions and 12 deletions

View File

@ -47,7 +47,7 @@ For information on how to create a cluster with kubeadm once you have performed
* 集群中的所有机器的网络彼此均能相互连接(公网和内网都可以)。
* 节点之中不可以有重复的主机名、MAC 地址或 product_uuid。请参见[这里](#verify-mac-address)了解更多详细信息。
* 开启机器上的某些端口。请参见[这里](#check-required-ports)了解更多详细信息。
* 禁用交换分区。为了保证 kubelet 正常工作,你 **必须** 禁用交换分区。
* 禁用交换分区。为了保证 kubelet 正常工作,你**必须**禁用交换分区。
<!-- steps -->
@ -88,7 +88,6 @@ These
[required ports](/docs/reference/ports-and-protocols/)
need to be open in order for Kubernetes components to communicate with each other. You can use tools like netcat to check if a port is open. For example:
-->
## 检查所需端口{#check-required-ports}
启用这些[必要的端口](/zh-cn/docs/reference/ports-and-protocols/)后才能使 Kubernetes 的各组件相互通信。
@ -174,11 +173,11 @@ The tables below include the known endpoints for supported operating systems:
| CRI-O | `unix:///var/run/crio/crio.sock` |
| Docker Engine (using cri-dockerd) | `unix:///var/run/cri-dockerd.sock` |
-->
| 运行时 | Unix 域套接字 |
| 运行时 | Unix 域套接字 |
|------------------------------------|----------------------------------------------|
| containerd | `unix:///var/run/containerd/containerd.sock` |
| CRI-O | `unix:///var/run/crio/crio.sock` |
| Docker Engine (使用 cri-dockerd) | `unix:///var/run/cri-dockerd.sock` |
| Docker Engine(使用 cri-dockerd | `unix:///var/run/cri-dockerd.sock` |
{{< /table >}}
{{% /tab %}}
@ -192,10 +191,10 @@ The tables below include the known endpoints for supported operating systems:
| containerd | `npipe:////./pipe/containerd-containerd` |
| Docker Engine (using cri-dockerd) | `npipe:////./pipe/cri-dockerd` |
-->
| 运行时 | Windows 命名管道路径 |
| 运行时 | Windows 命名管道路径 |
|------------------------------------|----------------------------------------------|
| containerd | `npipe:////./pipe/containerd-containerd` |
| Docker Engine (使用 cri-dockerd) | `npipe:////./pipe/cri-dockerd` |
| Docker Engine(使用 cri-dockerd | `npipe:////./pipe/cri-dockerd` |
{{< /table >}}
{{% /tab %}}
@ -262,7 +261,7 @@ For more information on version skews, see:
关于版本偏差的更多信息,请参阅以下文档:
* Kubernetes [版本与版本间的偏差策略](/zh-cn/releases/version-skew-policy/)
* Kubeadm 特定的[版本偏差策略](/zh-cn/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/#version-skew-policy)
* kubeadm 特定的[版本偏差策略](/zh-cn/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/#version-skew-policy)
{{< tabs name="k8s_install" >}}
{{% tab name="基于 Debian 的发行版" %}}
@ -317,7 +316,7 @@ name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-\$basearch
enabled=1
gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
gpgkey=https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
exclude=kubelet kubeadm kubectl
EOF
@ -345,8 +344,7 @@ sudo systemctl enable --now kubelet
-->
**请注意:**
- 通过运行命令 `setenforce 0``sed ...` 将 SELinux 设置为 permissive 模式
可以有效地将其禁用。
- 通过运行命令 `setenforce 0``sed ...` 将 SELinux 设置为 permissive 模式可以有效地将其禁用。
这是允许容器访问主机文件系统所必需的,而这些操作是为了例如 Pod 网络工作正常。
你必须这么做,直到 kubelet 做出对 SELinux 的支持进行升级为止。

View File

@ -151,7 +151,7 @@ would provision a network resource like a Google Compute Engine persistent disk,
an NFS share, or an Amazon Elastic Block Store volume. Cluster administrators can also
use [StorageClasses](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#storageclass-v1-storage-k8s-io)
to set up
[dynamic provisioning](/blog/2016/10/dynamic-provisioning-and-storage-in-kubernetes).
[dynamic provisioning](/docs/concepts/storage/dynamic-provisioning/).
Here is the configuration file for the hostPath PersistentVolume:
-->
@ -159,7 +159,7 @@ Here is the configuration file for the hostPath PersistentVolume:
集群管理员会提供网络存储资源,比如 Google Compute Engine 持久盘卷、NFS 共享卷或 Amazon Elastic Block Store 卷。
集群管理员还可以使用
[StorageClasses](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#storageclass-v1-storage-k8s-io)
来设置[动态提供存储](/blog/2016/10/dynamic-provisioning-and-storage-in-kubernetes)。
来设置[动态制备存储](/zh-cn/docs/concepts/storage/dynamic-provisioning/)。
下面是 hostPath PersistentVolume 的配置文件: