Installing the exporter in a CES-VM instance
To transfer the data and configurations from a CES-VM instance to a new CES-MN instance, an exporter application (Exporter) must be installed and configured on the source instance. This exporter is controlled by the importer on the target instance. It collects and transfers the data and configurations of the source instance. Once the final migration is complete, the exporter puts the source instance into maintenance mode.
Check prerequisites
- The source instance is a CES VM instance.
-
AN SSH key pair is required.
- A public key is required for the exporter.
- This key pair can be generated with
ssh-keygen. - The SSH key pair must not require a passphrase.
-
An API key is also required.
- The key can be generated individually with any characters.
- The API key may have a length of 8 to 128 characters.
- The API key is also required for the installation of the importer on the target instance.
- The instance is accessible via the ports
443and7022. - The nginx Dogu is installed in at least version 1.28.0-2.
Install exporter
- Log in to the command line of the source instance, e.g. via SSH.
- Switch to superuser mode (
sudo su). -
Install exporter from the APT package:
apt update && apt install ces-exporter -
Check that the exporter has started successfully:
docker ps | grep ces-exporter- If this command does not return a result, the exporter has not been installed correctly
Configure exporter
-
Configure the API key for a secure HTTPS connection:
etcdctl set /config/ces-exporter/authentication/api_key “<my-api-key>” -
Configure the public SSH key for the connection between Importer & Exporter:
-
with file (e.g. “id_rsa.pub”):
cat id_rsa.pub | etcdctl set /config/ces-exporter/authentication/public_key -
without file:
etcdctl set /config/ces-exporter/authentication/public_key “<public key>”
-