|
@@ -2154,7 +2154,7 @@ function add::ui() {
|
|
|
command::exec "${MGMT_NODE}" "
|
|
|
$(declare -f utils::retry)
|
|
|
cd ${path}
|
|
|
- helm repo add rancher-stable http://rancher-mirror.oss-cn-beijing.aliyuncs.com/server-charts/stable
|
|
|
+ helm repo add rancher-stable https://releases.rancher.com/server-charts/stable
|
|
|
utils::retry 6 helm pull rancher-stable/rancher --version ${RANCHER_VERSION} --untar
|
|
|
cat << EOF > rancher/templates/service.yaml
|
|
|
apiVersion: v1
|
|
@@ -2447,15 +2447,15 @@ function init::cluster() {
|
|
|
# 2. 安装包
|
|
|
#install::package
|
|
|
# 3. 初始化kubeadm
|
|
|
- kubeadm::init
|
|
|
+ #kubeadm::init
|
|
|
# 4. 加入集群
|
|
|
- kubeadm::join
|
|
|
+ #kubeadm::join
|
|
|
# 5. 添加network
|
|
|
- add::network
|
|
|
+ #add::network
|
|
|
# 6. 安装addon
|
|
|
- add::addon
|
|
|
+ #add::addon
|
|
|
# 7. 添加ingress
|
|
|
- add::ingress
|
|
|
+ #add::ingress
|
|
|
# 8. 添加storage
|
|
|
[[ "${STORAGE_TAG:-}" == "1" ]] && add::storage
|
|
|
# 9. 添加web ui
|
|
@@ -2465,7 +2465,7 @@ function init::cluster() {
|
|
|
# 11. 添加log
|
|
|
[[ "${LOG_TAG:-}" == "1" ]] && add::log
|
|
|
# 12. 运维操作
|
|
|
- add::ops
|
|
|
+ #add::ops
|
|
|
# 13. 查看集群状态
|
|
|
kube::status
|
|
|
}
|