查询Kubernetes中etcd数据

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

 

查询Kubernetes中etcd数据

上一篇:php生成验证码


下一篇:js实现图的遍历之广度优先搜索