tools/etcdhelper/README.md
A helper tool for getting OpenShift/Kubernetes data directly from Etcd.
$ go build .
This requires setting the following flags:
-key - points to master.etcd-client.key-cert - points to master.etcd-client.crt-cacert - points to ca.crtOnce these are set properly, one can invoke the following actions:
ls - list all keys starting with prefixget - get the specific value of a keydump - dump the entire contents of the etcdList all keys starting with /openshift.io:
etcdhelper -key master.etcd-client.key -cert master.etcd-client.crt -cacert ca.crt ls /openshift.io
Get JSON-representation of imagestream/python from openshift namespace:
etcdhelper -key master.etcd-client.key -cert master.etcd-client.crt -cacert ca.crt get /openshift.io/imagestreams/openshift/python
Dump the contents of etcd to stdout:
etcdhelper -key master.etcd-client.key -cert master.etcd-client.crt -cacert ca.crt dump