Closed lyonnee closed 2 years ago
通过docker-compose部署 etcdkeeper,进入页面就弹出报错
我不知道是不是我的 docker-compose.yaml 配置的有错误,还是我启动 etcd 镜像错了
这是docker-compose.yaml内容 `version: '3' networks: mall:
services: etcd1: image: quay.io/coreos/etcd:v3.2.5 container_name: etcd1 command: etcd -name etcd1 -advertise-client-urls http://0.0.0.0:2379 -listen-client-urls http://0.0.0.0:2379 -listen-peer-urls http://0.0.0.0:2380 -initial-cluster-token etcd-cluster -initial-cluster "etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380" -initial-cluster-state new ports:
mall
etcd2: image: quay.io/coreos/etcd:v3.2.5 container_name: etcd2 command: etcd -name etcd2 -advertise-client-urls http://0.0.0.0:2379 -listen-client-urls http://0.0.0.0:2379 -listen-peer-urls http://0.0.0.0:2380 -initial-cluster-token etcd-cluster -initial-cluster "etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380" -initial-cluster-state new ports:
etcd3: image: quay.io/coreos/etcd:v3.2.5 container_name: etcd3 command: etcd -name etcd3 -advertise-client-urls http://0.0.0.0:2379 -listen-client-urls http://0.0.0.0:2379 -listen-peer-urls http://0.0.0.0:2380 -initial-cluster-token etcd-cluster -initial-cluster "etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380" -initial-cluster-state new ports:
etcdkeeper: image: evildecay/etcdkeeper:latest container_name: "etcdkeeper" environment: HOST: "0.0.0.0" ports:
这个看起来是配置etcd证书的问题,client需要通过tls配置去连接etcd
通过docker-compose部署 etcdkeeper,进入页面就弹出报错
我不知道是不是我的 docker-compose.yaml 配置的有错误,还是我启动 etcd 镜像错了
这是docker-compose.yaml内容 `version: '3' networks: mall:
services: etcd1: image: quay.io/coreos/etcd:v3.2.5 container_name: etcd1 command: etcd -name etcd1 -advertise-client-urls http://0.0.0.0:2379 -listen-client-urls http://0.0.0.0:2379 -listen-peer-urls http://0.0.0.0:2380 -initial-cluster-token etcd-cluster -initial-cluster "etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380" -initial-cluster-state new ports:
mall
etcd2: image: quay.io/coreos/etcd:v3.2.5 container_name: etcd2 command: etcd -name etcd2 -advertise-client-urls http://0.0.0.0:2379 -listen-client-urls http://0.0.0.0:2379 -listen-peer-urls http://0.0.0.0:2380 -initial-cluster-token etcd-cluster -initial-cluster "etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380" -initial-cluster-state new ports:
etcd3: image: quay.io/coreos/etcd:v3.2.5 container_name: etcd3 command: etcd -name etcd3 -advertise-client-urls http://0.0.0.0:2379 -listen-client-urls http://0.0.0.0:2379 -listen-peer-urls http://0.0.0.0:2380 -initial-cluster-token etcd-cluster -initial-cluster "etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380" -initial-cluster-state new ports:
etcdkeeper: image: evildecay/etcdkeeper:latest container_name: "etcdkeeper" environment: HOST: "0.0.0.0" ports: