How to create lease
Guide to creating a lease in etcd
lease to write with TTL:

1. etcdctl --endpoints=$ENDPOINTS lease grant 300
2. # lease 2be7547fbc6a5afa granted with TTL(300s)
4. etcdctl --endpoints=$ENDPOINTS put sample value --lease=2be7547fbc6a5afa
5. etcdctl --endpoints=$ENDPOINTS get sample
7. etcdctl --endpoints=$ENDPOINTS lease keep-alive 2be7547fbc6a5afa
8. etcdctl --endpoints=$ENDPOINTS lease revoke 2be7547fbc6a5afa
9. # or after 300 seconds
10. etcdctl --endpoints=$ENDPOINTS get sample
Last modified July 6, 2025: etcd-website: rearrange files in developer and operator (06dc032)
