etcdctl error x509

After deploying etcd, I checked the cluster health status as normal, but using etcd command line tool etcdctl reported an error

The screenshot of the error report is as follows:

The text of the error message is pasted as follows:

Error:  client: etcd cluster is unavailable or misconfigured; error #0: x509: certificate signed by unknown authority
; error #1: x509: certificate signed by unknown authority
; error #2: x509: certificate signed by unknown authority

error #0: x509: certificate signed by unknown authority
error #1: x509: certificate signed by unknown authority
error #2: x509: certificate signed by unknown authority

Check that the value of the environment variable ETCDCTL_API is empty

Manually set the environment variable export ETCDCTL_API=3

Execute the etcdctl command again and no longer report an error

Guess you like

Origin blog.csdn.net/weixin_42182501/article/details/113933378