Score:0

etcdctl: unknown command "save" for "etcdctl"

cn flag

I entered the etcd container:

kubectl -n kube-system exec -it etcd-k8scp -- sh

The I try to backup the container like explained in the K8s docs

ETCDCTL_API=3 etcdctl --endpoints $ENDPOINT snapshot save snapshotdb

I get this error:

Error: unknown command "save" for "etcdctl"

What's wrong with my command?

Score:2
cn flag

I forgot to set $ENDPOINT.

If it is empty, then etcdctl gets this:

ETCDCTL_API=3 etcdctl --endpoints snapshot save snapshotdb

etcdctl thinks I want to address the endpoint called "snapshot" and execute the command "save"

:-)

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.