Browse Source

02k8s-install-centos.sh

master
lizw 1 year ago
parent
commit
7d19ec7090
  1. 14
      sd_dsl/02k8s-install-centos.sh

14
sd_dsl/02k8s-install-centos.sh

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

Loading…
Cancel
Save