KubeZero/docs/etcd_hackery.md

12 lines
278 B
Markdown
Raw Normal View History

# How to extract or even edit etcd data directly
## Get Auger
https://github.com/jpbetz/auger
## Change a PV object
2021-06-25 16:00:38 +00:00
etcdctl get /registry/persistentvolumes/my_pv | auger decode > pv.yaml
vi pv.yaml
2021-06-25 16:00:38 +00:00
cat pv.yaml | auger encode | etcdctl put /registry/persistentvolumes/my_pv