liuyi01/kubernetes-starter

想请问一下etcd加证书的时候问题

ray1888 opened this issue · 0 comments

我现在的情况是这样的,跟着您的教程来生成了证书,etcd服务也启动了,但是就是过不了endpoint check, 一直说是证书错误,但是我是跟着您教程用根ca和etcd的两个ca来做验证的,但是就是unhealthy,能请问一下原因吗?

ETCDCTL_API=3 etcdctl   --endpoints=https://172.17.195.73:2379    --cacert=/etc/kubernetes/ssl/root/ca.pem   --cert=/etc/etcd/ssl/etcd.pem   --key=/etc/etcd/ssl/etcd-key.pem  endpoint health 

https://172.17.195.73:2379 is unhealthy: failed to connect: context deadline exceeded
Error: unhealthy cluster