Skip to content

Commit 8e8b281

Browse files
authored
Update configure-upgrade-etcd.md to give an example use-case for snapshot using options given by etcdctl
1 parent 52997fc commit 8e8b281

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

content/en/docs/tasks/administer-cluster/configure-upgrade-etcd.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,21 @@ If etcd is running on a storage volume that supports backup, such as Amazon
269269
Elastic Block Store, back up etcd data by taking a snapshot of the storage
270270
volume.
271271

272+
### Snapshot using etcdctl options
273+
274+
We can also take the snapshot using various options given by etcdctl. For example
275+
276+
```shell
277+
ETCDCTL_API=3 etcdctl --h
278+
```
279+
280+
will list various options avilable with etcdctl. If you want to take a snapshot by specifying various options available here, you can do so. For example, to take a snapshot by specifying the endpoint, certificates etc is as given below
281+
282+
```shell
283+
ETCDCTL_API=3 etcdctl --endpoints=[127.0.0.1:2379] --cacert=<trusted-ca-file> --cert=<cert-file> --key=<key-file> snapshot save <backup-file-location>
284+
```
285+
where, <trusted-ca-file>, <cert-file> and <key-file> can be obtained by looking at the description of the etcd pod.
286+
272287
## Scaling up etcd clusters
273288

274289
Scaling up etcd clusters increases availability by trading off performance.

0 commit comments

Comments
 (0)