Skip to content

Commit

Permalink
Added default user for each provider in the etcd backup restore comm…
Browse files Browse the repository at this point in the history
…ands (#7918)

* fixed backup restore commands

* fixed backup restore commands

* fixed username in backup restore commands

* fixed username in backup restore commands

* fixed username in backup restore commands

---------

Co-authored-by: Neelam Dharnidharka <dharnidh@amazon.com>
  • Loading branch information
ndeksa and Neelam Dharnidharka authored Mar 29, 2024
1 parent 95624b5 commit e277182
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ EKS-Anywhere clusters use etcd as the backing store. Taking a snapshot of etcd b

Etcd offers a built-in snapshot mechanism. You can take a snapshot using the `etcdctl snapshot save` or `etcdutl snapshot save` command by following the steps given below.

{{% alert title="Note" color="warning" %}}
The following commands use ec2-user as the username. For EKS Anywhere on vSphere, Bare Metal, and Snow, the default username is ec2-user. For EKS Anywhere on Apache CloudStack, the default username is capc.
For EKS Anywhere on Nutanix, the default username is eksa. The default username cannot be changed.
{{% /alert %}}

1. Login to any one of the etcd VMs
```bash
ssh -i $PRIV_KEY ec2-user@$ETCD_VM_IP
Expand Down Expand Up @@ -93,6 +98,7 @@ scp -i $PRIV_KEY snapshot.db ec2-user@$ETCD_VM_IP:/home/ec2-user
2. To run the etcdctl or etcdutl snapshot restore command, you need to provide the following configuration parameters:
* name: This is the name of the etcd member. The value of this parameter should match the value used while starting the member. This can be obtained by running:
```bash
sudo su
export ETCD_NAME=$(cat /etc/etcd/etcd.env | grep ETCD_NAME | awk -F'=' '{print $2}')
```
* initial-advertise-peer-urls: This is the advertise peer URL with which this etcd member was configured. It should be the exact value with which this etcd member was started. This can be obtained by running:
Expand Down

0 comments on commit e277182

Please sign in to comment.