备注 export

This commit is contained in:
huanqing.shao
2019-08-26 14:49:22 +08:00
parent 450fe61bd6
commit 9fa1dd586f

View File

@ -14,7 +14,7 @@ description: Kubernetes 最新稳定版 v1.15.2 的快速安装文档。该文
* **持续不断地更新和完善**
* 始终有最新的 Kubernetes 稳定版安装文档,当前版本 v1.15.2
* 当前已更新了 <font color="red"> 38</font> [查看更新历史](https://github.com/eip-work/kuboard-press/commits/master/install/install-k8s.md)
* 当前已更新了 <font color="red"> 39</font> [查看更新历史](https://github.com/eip-work/kuboard-press/commits/master/install/install-k8s.md)
![image-20190806070341727](./install-k8s.assets/image-20190806070341727.png)
@ -131,8 +131,9 @@ curl -sSL https://kuboard.cn/install-script/install-kubelet.sh | sh
``` sh
# 只在 master 节点执行
# 替换 x.x.x.x 为 master 节点实际 IP请使用内网 IP
# export 命令只在当前 shell 会话中有效,开启新的 shell 窗口后,如果要继续安装过程,请重新执行此处的 export 命令
export MASTER_IP=x.x.x.x
# 替换 apiserver.demo 为 您想要的 dnsName
# 替换 apiserver.demo 为 您想要的 dnsName (不建议使用 master 的 hostname 作为 APISERVER_NAME)
export APISERVER_NAME=apiserver.demo
export POD_SUBNET=10.100.0.1/20
echo "${MASTER_IP} ${APISERVER_NAME}" >> /etc/hosts
@ -146,8 +147,9 @@ curl -sSL https://kuboard.cn/install-script/init-master.sh | sh
``` sh
# 只在 master 节点执行
# 替换 x.x.x.x 为 master 节点实际 IP请使用内网 IP
# export 命令只在当前 shell 会话中有效,开启新的 shell 窗口后,如果要继续安装过程,请重新执行此处的 export 命令
export MASTER_IP=x.x.x.x
# 替换 apiserver.demo 为 您想要的 dnsName
# 替换 apiserver.demo 为 您想要的 dnsName (不建议使用 master 的 hostname 作为 APISERVER_NAME)
export APISERVER_NAME=apiserver.demo
export POD_SUBNET=10.100.0.1/20
echo "${MASTER_IP} ${APISERVER_NAME}" >> /etc/hosts