mirror of
https://github.com/kubesphere/website.git
synced 2025-12-26 00:12:48 +00:00
21 lines
549 B
Plaintext
21 lines
549 B
Plaintext
// :ks_include_id: bc97a1c3d087413bba734c07a3edb221
|
|
. 登录所有集群节点,执行以下命令编辑 **/etc/hosts** 文件:
|
|
+
|
|
--
|
|
// Bash
|
|
include::../../../_ks_components/code/bash.adoc[]
|
|
|
|
vi /etc/hosts
|
|
|
|
----
|
|
|
|
在 **/etc/hosts** 文件中添加以下信息,从而为集群节点配置私有镜像服务的域名解析规则(将 <registry IP address> 替换成私有镜像服务的实际 IP 地址),然后保存文件:
|
|
|
|
// Bash
|
|
include::../../../_ks_components/code/bash.adoc[]
|
|
|
|
<registry IP address> dockerhub.kubekey.local
|
|
|
|
----
|
|
--
|