Skip to content

Commit 3ce2661

Browse files
authored
Merge pull request #27161 from ganeshniyer/patch-2
Update configure-upgrade-etcd.md to give an example use-case for snap…
2 parents 53a1678 + c10d270 commit 3ce2661

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,24 @@ 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 available from etcdctl. For example, you can take a snapshot by specifying
281+
the endpoint, certificates etc as shown below:
282+
283+
```shell
284+
ETCDCTL_API=3 etcdctl --endpoints=[127.0.0.1:2379] \
285+
--cacert=<trusted-ca-file> --cert=<cert-file> --key=<key-file> \
286+
snapshot save <backup-file-location>
287+
```
288+
where `trusted-ca-file`, `cert-file` and `key-file` can be obtained from the description of the etcd Pod.
289+
272290
## Scaling up etcd clusters
273291

274292
Scaling up etcd clusters increases availability by trading off performance.
@@ -324,4 +342,3 @@ We also recommend restarting any components (e.g. `kube-scheduler`,
324342
stale data. Note that in practice, the restore takes a bit of time. During the
325343
restoration, critical components will lose leader lock and restart themselves.
326344
{{< /note >}}
327-

0 commit comments

Comments
 (0)