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