1、安装etcd
dnf install etcd
2、配置环境变量/etc/profile
export ETCDCTL_API=3 export ETCDCTL_CACERT=/etc/kubernetes/pki/etcd/ca.crt export ETCDCTL_CERT=/etc/kubernetes/pki/etcd/peer.crt export ETCDCTL_KEY=/etc/kubernetes/pki/etcd/peer.key
3、查询所有key
etcdctl get /registry --prefix --keys-only=true