tencentblueking / bk-install Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
yum info pssh
测试下)。curl -sSLO https://bkopen-1252002024.file.myqcloud.com/ce/a3aa5b2/bkce-src-6.2.1-minimal.tgz
tar xf bkce_basic_suite-6.1.1.tgz -C /data
install -d -m 755 /data/src/cert
tar xf ssl_certificates.tar.gz -C /data/src/cert
chmod 644 /data/src/cert/*
cd /data/src/; for f in *gz;do tar xf $f; done
cp -a /data/src/yum /opt
cd /data/install
./bin/create_swap.sh -p /swapfile
cd /data/install
./minimal_tweak_config.sh
sed -i '/start es7/i\\t./pcmd.sh\ -m\ es7\ \"sed -i '\'s/^-Xms.*g/-Xms1g/g\'\ /etc/elasticsearch/jvm.options\" ./bk_install
sed -i '/start es7/i\\t./pcmd.sh\ -m\ es7\ \"sed -i '\'s/^-Xmx.*g/-Xmx1g/g\'\ /etc/elasticsearch/jvm.options\" ./bk_install
sed -i '/start kafka/i\\t./pcmd.sh\ -m\ kafka\ \"echo "KAFKA_HEAP_OPTS=-Xmx2g -Xms2g" >>'/etc/sysconfig/kafka\" ./bk_install
cd /data/install
./install_minibk
# 执行降低内存消耗脚本
for m in bk_sops bk_itsm bk_iam bk_user_manage bk_nodeman mongodb usermgr; do
./bin/single_host_low_memory_config.sh tweak $m
done
# 更新 install.config
cd /data/install
source /etc/blueking/env/local.env
cat >> install.config <<EOF
${LAN_IP} kafka(config),influxdb(bkmonitorv3)
${LAN_IP} monitorv3(monitor),monitorv3(unify-query),monitorv3(transfer),monitorv3(influxdb-proxy),monitorv3(ingester),monitorv3(grafana)
${LAN_IP} log(api),log(grafana)
EOF
# 执行部署
./bk_install bkmonitorv3 && ./bk_install bklog
安装过程中遇到失败的情况,请先定位排查解决后,再重新运行失败时的安装指令。
source ~/.bashrc
./bkcli initdata topo
cd /data/install && source utils.fc
cat <<EOF
## 账号: ${BK_PAAS_ADMIN_USERNAME}
## 密码: ${BK_PAAS_ADMIN_PASSWORD}
## 以下为 hosts:
$(ssh $BK_NGINX_IP 'curl -sL ip.not.icu') ${BK_PAAS_PUBLIC_ADDR%:*} ${BK_CMDB_PUBLIC_ADDR%:*} ${BK_JOB_PUBLIC_ADDR%:*} ${BK_LESSCODE_PUBLIC_ADDR%:*} ${BK_API_CHECK_PUBLICE_ADDR%:*} ${BK_APIGW_PUBLIC_ADDR%:*}
EOF
日常维护和运维,单机部署和多机是一致的,请参考 维护文档。
将bk-install以及对应的PaaS和SaaS调整为全容器化部署(非K8S):
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.