Add script to snapshot etcd
This commit is contained in:
2
charts
2
charts
Submodule charts updated: ad4b83a24d...5c7f1228a8
7
scripts/etcd-snapshot.sh
Normal file
7
scripts/etcd-snapshot.sh
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
ETCDCTL_API=3 etcdctl --endpoints https://etcd.local:2379 \
|
||||||
|
--cacert=/var/lib/kubernetes/secrets/ca.pem \
|
||||||
|
--cert=/var/lib/kubernetes/secrets/kube-apiserver-etcd-client.pem \
|
||||||
|
--key=/var/lib/kubernetes/secrets/kube-apiserver-etcd-client-key.pem \
|
||||||
|
snapshot save snapshot.db
|
||||||
Reference in New Issue
Block a user