eip-work / kuboard-press

Kuboard 是基于 Kubernetes 的微服务管理界面。同时提供 Kubernetes 免费中文教程,入门教程,最新版本的 Kubernetes v1.23.4 安装手册,(k8s install) 在线答疑,持续更新。
https://kuboard.cn/
21.63k stars 1.49k forks source link

kube-etcd 容量 大于 2G 导致 etcd数据库 起不来 #526

Open nangongchengfeng opened 2 weeks ago

nangongchengfeng commented 2 weeks ago

使用 swr.cn-east-2.myhuaweicloud.com/kuboard/etcd-host:3.4.16-2 版本的etcd 数据库 由于没有设置 ,容量参数,导致 数据大于2G就无法启动。

报错截图: etcdserver/api/etcdhttp: /health error due to memberID: alarm:NOSPACE image

解决参数: --quota-backend-bytes=8589934592#调大到8GB

需要官方在制作镜像进行添加参数

临时办法

1、修改 kube-etcd 监控检测,时间调大点,防止重启

 kubectl edit daemonsets.apps -n kuboard kuboard-etcd 

image

2、执行 下方命令 (不建议使用 127.0.0.1 使用 master 的网卡IP地址)

ETCDCTL_API=3 ./etcdctl  --endpoints="http://192.168.102.30:2381" --write-out=table endpoint status
ETCDCTL_API=3 ./etcdctl  --endpoints="http://192.168.102.30:2381" compact $(ETCDCTL_API=3 ./etcdctl --endpoints="http://192.168.102.30:2381" endpoint status --write-out="json" | egrep -o '"revision":[0-9]*' | egrep -o '[0-9].*')
ETCDCTL_API=3 ./etcdctl  --endpoints="http://192.168.102.30:2381" defrag
ETCDCTL_API=3 ./etcdctl  --endpoints="http://192.168.102.30:2381" alarm disarm

恢复正常 image