shiguanghuxian / etcd-manage

一个现代的etcd v3管理ui
http://140.143.234.132:10280/ui/#/key/kv
MIT License
244 stars 61 forks source link

member的Status显示unhealthy #33

Closed foreverwf closed 5 years ago

foreverwf commented 5 years ago

image

cfg.toml

# debug模式
debug = true
# 日志文件路径
log_path = ""

# http 监听端口
[http]
# 监听地址
address = "0.0.0.0"
# 监听端口
port = 10280

## 一下每一个server为一个etcd服务 ##
[[server]]
# 显示名称
title = "测试环境"
# 标识名
name = "qa"
# etcd连接地址 如果为集群请填写全部地址
address = ["172.17.11.141:2379"]
# 查看的key前缀
key_prefix = "/"
# 简述信息
desc = "环境etcd"
# 可访问服务器角色列表 - 不写则为所有用户可访问
roles = ["admin","dev"]

## 以下为用户列表 ##
[[user]]
username = "admin"
password = "123456"
role = "admin"

[[user]]
username = "dev_user"
password = "123456"
role = "dev"

点击了repair directory也不行 image

shiguanghuxian commented 5 years ago

单节点似乎有时候是这样的,这个是etcd服务返回的直接显示 建议你使用v2版,因为ui会更好用,切没有特殊key标识目录 v2地址 https://github.com/etcd-manage/etcd-manage-server image

foreverwf commented 5 years ago

能提供一下v2版的镜像吗

shiguanghuxian commented 5 years ago

由于etcd v2 api一直未测试,所以现在代码在dev分支,你可以看下 https://github.com/etcd-manage/etcd-manage-server/tree/dev 参考此docker-compose.yml https://github.com/etcd-manage/etcd-manage-server/blob/dev/docker-compose.yml

镜像 shiguanghuxian/etcd-manage:2.0.0 或 shiguanghuxian/etcd-manage