说明:
- 软件版本 20.0.1.1227
- kubernetes集群需要部署完成
- 在20.0.1.1227 版本,没有集成ansible自动安装,需要在k8s管理节点安装ansible
- 在20.0.1.1227 版本,没有集成无密码访问脚本,需要手动对各workernode进行无密码访问配置
1. 软件下载
wget 101.201.81.45:8888/CentOS_6.5/zcbus/docker/k8sSetup_20.0.1.1227.tar.gz
2. 解压
tar -xzvf k8sSetup_20.0.1.1227.tar.gz
3. 修改配置文件
(1) 修改 zcbus.yml
,文件位置:k8sSetup/conf
[root@db03 k8sSetup]# cd conf/
[root@db03 conf]# cat zcbus.yml
# database
zcbusDB:
image: mysql:5.7
master_data_path: /data/k8s/mysql/mysql-0
slave_data_path: /data/k8s/mysql/mysql-1
master_worknode: db04
slave_worknode: db05
data_volume: /usr/local/docker
# kafka
zcbusKafka:
image: reg.zbomc.com/kafka/kubernetes-kafka:1.0-10.2.1
kfk_ports: 9092
kafka_volumes: /usr/local/docker/kafka/data
kafka_worknode01: db04
kafka_worknode02: db04
kafka_worknode03: db05
kafka_worknode01_path: /data/k8s/kafka/kafkadata-0
kafka_worknode02_path: /data/k8s/kafka/kafkadata-1
kafka_worknode03_path: /data/k8s/kafka/kafkadata-2
kafka_mem_quota: 128Mi
kafka_cpu_quota: 0.1
kafka_containerPort: 9093
kafka_disk_space: 5G
kafka_storage: 5Gi
zcbusZookeeper:
image: reg.zbomc.com/zookeeper/kubernetes-zookeeper:1.0-3.4.10
zookeeper_worknode01: db04
zookeeper_worknode02: db04
zookeeper_worknode03: db05
zookeeper_worknode01_path: /data/k8s/kafka/zkdata-0
zookeeper_worknode02_path: /data/k8s/kafka/zkdata-1
zookeeper_worknode03_path: /data/k8s/kafka/zkdata-2
zookeeper_storage: 5Gi
zookeeper_disk_space: 5G
zookeeper_mem_quota: 128Mi
zookeeper_cpu_quota: 0.5
zcbusWeb:
image: reg.zbomc.com/zcbus_web/zcbus_web:v3.0.4
ports: 8888
zcbusNodePort: 30888
zcbusServer:
image: reg.zbomc.com/zcbus_server/zcbus_server:v3.0.5
ENV:
LANG: C.UTF-8
dbuser: "SFVVTjo"
dbpwd: 'SFVVTjo'
dbhost: zcbusdb
dbport: 3306
database: "zcbus"
ZCBUS_CONTAINER: "zcbus"
worknode: "db04"
(2) 修改hosts文件,文件位置 k8sSetup/.ansible/
, 注意: ansible 为隐藏目录
[root@db03 k8s]# cd k8sSetup/.ansible/
[root@db03 .ansible]# cat hosts
[workernode]
10.105.1.104
10.105.1.105
修改hosts文件中的IP地址为k8s worknode 的主机IP
4. 安装
cd k8sSetup/bin
./install.sh
5. 卸载
cd k8sSetup/bin
./unistall.sh
文档更新时间: 2020-12-29 03:03 作者:阿力