Docker + CentOS 部署 Zookeeper 集群 + Kubernetes Operator 自动化运维方案
环境说明主机 IP主机名节点角色数据目录Kubernetes 节点标签192.168.10.100zk1Master/opt/zookeeper/datazk-cluster=true192.168.10.101zk2Worker/opt/zookeeper/datazk-cluster=true192.168.10.102zk3Worker/opt/zookeeper/datazk-cluster=true192.168.10.103zk4Worker/opt/zookeeper/datazk-cluster=true192.168.10.104zk5Worker/opt/zookeeper/datazk-cluster=true一、基础环境部署(所有节点)
1. 系统配置
bash # 设置主机名sudo hostnamectl set-hostname zk1# 分别在每台机器执行对应主机名# 编辑hosts文件sudo tee -a /etc/hosts
页:
[1]