From e277182534c72215cfd62d6ca59475424532f371 Mon Sep 17 00:00:00 2001 From: Neelam Dharnidharka <83719924+ndeksa@users.noreply.github.com> Date: Fri, 29 Mar 2024 15:20:37 -0700 Subject: [PATCH] Added default user for each provider in the etcd backup restore commands (#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 --- .../etcd-backup-restore/ubuntu-rhel-etcd-backup.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/content/en/docs/clustermgmt/etcd-backup-restore/ubuntu-rhel-etcd-backup.md b/docs/content/en/docs/clustermgmt/etcd-backup-restore/ubuntu-rhel-etcd-backup.md index 03f4791cb73c..792d6e5532b5 100644 --- a/docs/content/en/docs/clustermgmt/etcd-backup-restore/ubuntu-rhel-etcd-backup.md +++ b/docs/content/en/docs/clustermgmt/etcd-backup-restore/ubuntu-rhel-etcd-backup.md @@ -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 @@ -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: