Skip to content

Commit

Permalink
部署脚本选用bcs-apiserver-proxy作为默认高可用方案 #2413 (#2467)
Browse files Browse the repository at this point in the history
部署脚本集成multus方案#2411
  • Loading branch information
denglouping authored Aug 21, 2023
1 parent 2a8c12a commit ccdae7c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bcs-ops/install_master.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ if [[ -z ${MASTER_JOIN_CMD:-} ]]; then
"${ROOT_DIR}"/k8s/operate_kube_vip apply
elif [[ ${APISERVER_HA_MODE} == "bcs-apiserver-proxy" ]]; then
"${ROOT_DIR}"/k8s/operate_bap apply
else
"${ROOT_DIR}"/k8s/operate_bap apply
fi
fi

if [[ ${ENABLE_MULTUS_HA} == "true" ]]; then
if ! "${ROOT_DIR}"/k8s/operate_multus apply;then
utils::log "FATAL" "fail to apply multus"
fi
fi
else
Expand Down
4 changes: 4 additions & 0 deletions bcs-ops/system/config_envfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ init_env() {
KUBE_VIP_VERSION=${KUBE_VIP_VERSION:-"v0.5.12"}
BIND_INTERFACE=${BIND_INTERFACE:-}
VIP_CIDR=${VIP_CIDR:-"32"}
## multus
ENABLE_MULTUS_HA=${ENABLE_MULTUS_HA:-"true"}
}

source_cluster_env() {
Expand Down Expand Up @@ -288,6 +290,8 @@ DEBUG_MODE="${DEBUG_MODE}"
KUBE_VIP_VERSION="${KUBE_VIP_VERSION}"
BIND_INTERFACE="${BIND_INTERFACE}"
VIP_CIDR="${VIP_CIDR}"
## multus
ENABLE_MULTUS_HA="${ENABLE_MULTUS_HA}"
# bcs config end
EOF
}
Expand Down

0 comments on commit ccdae7c

Please sign in to comment.