unexpected status code 401

etcd 执行删除命令报错:

unexpected status code 401

unexpected status code 401

原来是api版本不对默认是V2,,沃日~~~~~~~~~~~~~~~~~~~

export ETCDCTL_API=3