【发布时间】:2018-05-28 05:17:37
【问题描述】:
问题
如何从 etcd 中获取 Kubernetes 相关的密钥?试图列出 etcd 中的键,但看不到相关键。还有etcdctl安装在哪里?
$ etcdctl
bash: etcdctl: command not found..
$ sudo netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:2379 0.0.0.0:* LISTEN 386/etcd
tcp 0 0 127.0.0.1:2380 0.0.0.0:* LISTEN 386/etcd
$ curl -s http://localhost:2379/v2/keys | python -m json.tool
{
"action": "get",
"node": {
"dir": true
}
}
背景
在 CentOS 7 上按照 Using kubeadm to Create a Cluster 安装了 Kubernetes 1.8.5。当我查看 Getting started with etcd 时,v2/keys 看起来是终点。
【问题讨论】:
标签: kubernetes etcd