etcdctl v3使用
1、首先设置环境变量使用V3版本API:export ETCDCTL_API=3
2、查看所有的key
etcdctl --endpoints="http://192.168.50.124:2379" --prefix --keys-only=true get /
3、查看某个具体的key的值
etcdctl --endpoints="http://192.168.50.124:2379" get /skydns/com/test/x1
4、设置相关内容
etcdctl --endpoints="http://192.168.50.136:2379" put /skydns/com/test/x1 '{"host":"1.1.1.2","ttl":60}'
Coredns自定义域名
最新推荐文章于 2025-03-15 15:49:13 发布