Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

部署脚本集成multus方案#2411 #2456

Closed
wants to merge 11 commits into from
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