I am trying to backup and restore etcd on the kubeadm cluster I have created. However, when I run the snapshot save command, I get the following error.
ETCDCTL_API=3 etcdctl --endpoints=https://127.0.0.1:2379 --cacert=/etc/kubernetes/pki/etcd/ca.crt --cert=/etc/kubernetes/pki/etcd/server.crt --key=/etc/kubernetes/pki/etcd/server.key snapshot save /home/snapshot.db
Error: open /etc/kubernetes/pki/etcd/server.crt: permission denied
Can anyone point guide me on how this can be resolved?