騰訊藍鯨簡介
本次部署環境:
Centos7.6
系統配置為:
CPU AMD R5 1600x #使用i3 4代的虛擬機測試,各種報錯,懷疑藍鯨對cpu也有要求
1核1G 20G磁盤
使用到的藍鯨安裝文件下載地址:
https://bk.tencent.com/download/
一.下載完整安裝包
二.下載部署腳本
三.步驟步驟
具體命令如下
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm -y #需要使用到epel安裝源 systemctl stop firewalld #關閉防火牆
systemctl disable firewalld
vi /etc/selinux/config #selinux設置為disable
SELINUX=disabled
echo 'DefaultLimitNOFILE=102400' >> /etc/systemd/system.conf #修改最大文件打開數 echo 'DefaultLimitNPROC=102400' >> /etc/systemd/system.conf mkdir /data tar -zxvf bkce_src-4.1.16.tgz -C /data/ tar -zxvf install_ce-master-1.4.13.tgz -C /data cd /data/ cat /sys/class/net/ens33/address #獲取mac地址,將該mac地址復制到https://bk.tencent.com/download_ssl/,點擊下載證書 tar -xvf ssl_certificates.tar.gz -C /data/src/cert/ vi /data/install/globals.env #這兩個值做如下修改 export BK_DOMAIN="bk.cloud.tencent.com" #修改域名值,因為我們使用域名進行訪問 export PAAS_ADMIN_PASS='Password' #修改秘密 cd /data/install
yum install rsync -y #安裝rsync,否則后續檢測會失敗
systemctl stop NetworkManager.service #關閉該服務,否則后續會檢測失敗 ./install_minibk -y #開始安裝
安裝過程,會先進行安裝環境檢測
1.檢測過程中,如果提示start <<check_rsync>> ... [FAILED],再次執行./install_minibk -y繼續即可
2.檢測過程中,如果提示start <<check_networkmanager>> ... [FAILED]
NetworkManager is running, you should shutdown firewall
執行systemctl stop NetworkManager.service
3.安裝過程中,會提示enter a absolute path [/data/bkce]:這個是讓里選擇安裝目錄而已,直接默認即可
4.安裝過程中會提示是否同意騰訊協議,輸入yes同意即可
------------------------- agreements ---------------------------------
Dear users, welcome to use the Tencent BlueKing Software. Please
access http://bk.tencent.com/info/#laws to read the Tencent BlueKing
Software License and Service Agreement carefully. You have no right to
install or use the Software and related services unless you have read
and accepted all the terms of this Agreement. By downloading, install-
ing, using or logging in the Software, you shall be deemed to have
read and agreed to be bound by the Agreement above. If you have under-
stood the above content, please enter "yes" to continue installation,
otherwise, please enter "no" to abort. Thank you for your understan-
ding and support of the Tencent BlueKing Software.
----------------------------------------------------------------------
yes/no ?
5.在安裝過程中,如果報錯,修復完對應的報錯后,多次重復安裝是不會有問題的,直到安裝成功
訪問藍鯨WEB頁面
在需要訪問該WEB頁面的電腦上,修改hosts文件即可
cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.2.137 paas.bk.cloud.tencent.com #這三行是我添加的。直接添加進去即可,無需重啟電腦 192.168.2.137 cmdb.bk.cloud.tencent.com 192.168.2.137 job.bk.cloud.tencent.com
在瀏覽器訪問http://paas.bk.cloud.tencent.com
登陸進去后
配置平台界面
作業平台界面
節點平台界面
好了。騰訊藍鯨部署完成,可以開始體驗一下了。
參考鏈接:https://cloud.tencent.com/developer/labs/lab/10386