using etcdctl
API V3 examples
etcdctl --cacert="/etc/kubernetes/certs/ca.crt" \ --cert="/etc/kubernetes/certs/etcdclient.crt" \ --key="/etc/kubernetes/certs/etcdclient.key" \ get /registry/pods/ --prefix --keys-only etcdctl --endpoint='https://127.0.0.1:6666' \ --cert-file=/etc/etcd_networking/etcd.pem \ --key-file=/etc/etcd_networking/etcd-key.pem \ --ca-file=/etc/etcd_networking/ca.pem \ get /calico/v1/ipam/v4/pool/172.16.0.0-16 etcdctl --endpoint='https://127.0.0.1:2379' \ --cacert="/etc/kubernetes/certs/ca.crt" \ --cert="/etc/kubernetes/certs/etcdclient.crt" \ --key="/etc/kubernetes/certs/etcdclient.key" \ --debug \ get / --prefix --keys-only
API V2 example
etcdctl --endpoint='https://127.0.0.1:2379' \ --cert-file=/etc/etcd_networking/etcd.pem \ --key-file=/etc/etcd_networking/etcd-key.pem \ --ca-file=/etc/etcd_networking/ca.pem \ ls / --recursive