Skip to main content

Online installation with Embedded Cluster

This topic describes how to install an application in an online (internet-connected) environment with Replicated Embedded Cluster. For air gap installations, see Air gap installation with Embedded Cluster. For an introduction to Embedded Cluster, see Embedded Cluster overview.

note

Choose the installation mode when you install the application. You cannot change the mode later. An instance installed in an online environment receives updates over the internet and cannot accept an air gap bundle. An instance installed in an air gap environment requires an air gap bundle for each update and does not check for new versions over the internet. To change the mode, reinstall the application in the target mode.

Prerequisites​

Before you install, complete the following prerequisites:

Install using the Embedded Cluster UI​

This section describes how to install using the interactive Embedded Cluster installer UI.

Use the Enterprise Portal for a guided install​

To use the guided install experience in the Enterprise Portal:

  1. Log in to the Replicated Enterprise Portal with a user for your test customer.

  2. Follow the Linux install instructions for Embedded Cluster.

Install using instructions from the Vendor Portal​

To install from the Vendor Portal:

  1. In the Vendor Portal, open the Customers page and select a customer that belongs to the channel you use for testing.

  2. At the top of the customer page, click Install instructions and select Embedded Cluster. (The control may appear as Embedded Cluster install instructions.)

    note

    You can also open the Enterprise Portal to get install and upgrade instructions.

  3. In the Select a version field (or equivalent), choose the application version you promoted to that channel for testing, or leave the latest version selected if that is what you want to install.

  4. On a Linux machine, run the three commands from the dialog in order: download the archive, extract it, then run the install command.

  5. Complete any prompts from the install command (for example, acceptance of a self-signed certificate and installer password).

  6. Open the URL from the install output in a browser to open the installer UI.

  7. Log in to the installer with the password you set when you ran the install command.

  8. On the Configure page, enter the configuration values for your application.

  9. On the Set Up page, provide any information required for the cluster installation (for example, proxy settings).

  10. On the Run page, start the installation and wait for it to complete.

  11. On the Finish page, confirm completion. If your Replicated Application custom resource defines links, they appear on this page.

    note

    Links to port-forwarded services are not available on this page.

Install using the CLI (Headless)​

With headless installation, you provide all necessary installation assets with the installation command rather than through the UI. Assets include the license file and the application config values. During headless installations, any preflight checks defined for the application run automatically from the command line rather than appearing in the UI. You can also allow the installation to continue when checks fail, which is useful when testing in development environments. See Bypass preflight failures during headless installation on this page.

To join hosts before the application deploys, declare the expected topology with --node. For more information about headless installation, see Install a multi-node or HA cluster headlessly in this document.

To install using the CLI:

  1. In the Vendor Portal, open the Customers page and select a customer that belongs to the channel you use for testing.

  2. At the top of the customer page, click Install instructions and select Embedded Cluster. (The control may appear as Embedded Cluster install instructions.)

    note

    You can also open the Enterprise Portal to get install and upgrade instructions.

  3. In the Select a version field (or equivalent), choose the application version you promoted to that channel for testing, or leave the latest version selected if that is what you want to install.

  4. On a Linux machine, run the first two commands from the dialog (download the archive, then extract it).

  5. For the third command, run install with the following flags:

    • --headless to run without the interactive installer UI.
    • --yes to accept prompts automatically, including the prompt to generate a self-signed certificate for the installer. Without --yes, the command stops and waits for input.
    • --config-values with the path to your ConfigValues file.
    • --installer-password with the password you will use to access the installer later.

    Example:

    sudo ./APP_SLUG install --license LICENSE_FILE --headless --yes --config-values PATH_TO_CONFIGVALUES --installer-password INSTALLER_PASSWORD

    Replace APP_SLUG, LICENSE_FILE, PATH_TO_CONFIGVALUES, and INSTALLER_PASSWORD with the values for your environment. Add any other flags you need. For the full set of flags, see install.

  6. When installation completes, use the printed URL to open the admin console.

Install a multi-node or HA cluster headlessly​

Enable the Multi-node Cluster (Embedded Cluster only) license field for the customer. Then pass one --node flag per group of hosts with the same roles. Each flag takes a JSON object with a positive integer count and a roles array. Use the controller role and any custom roles defined in the Embedded Cluster Config. Each host in a group must have every role listed for that group.

The first controller counts toward the total. It has the configured controller role by default. If you assign additional roles to the first controller with --roles, include a group with that exact combination of roles. Specify one controller or at least three. An HA cluster requires at least three controllers.

  1. On the first controller, run the headless install with the expected topology. This example installs three controllers using the default controller role:

    sudo ./APP_SLUG install --license LICENSE_FILE --headless --yes \
    --config-values PATH_TO_CONFIGVALUES --installer-password INSTALLER_PASSWORD \
    --node '{"count":3,"roles":["controller"]}'

    Replace the placeholders with your values. For an air gap installation, follow the air gap prerequisites and preparation steps and add --airgap to the install command.

    If the release defines a custom frontend role, the following example assigns it to the first controller. The other two controllers have only the controller role.

    sudo ./APP_SLUG install --license LICENSE_FILE --headless --yes \
    --config-values PATH_TO_CONFIGVALUES --installer-password INSTALLER_PASSWORD \
    --roles controller,frontend \
    --node '{"count":1,"roles":["controller","frontend"]}' \
    --node '{"count":2,"roles":["controller"]}'

    To add a worker, include another group, for example --node '{"count":1,"roles":["worker"]}' if the release defines a custom role named worker.

  2. Leave the install command running. On each additional host, run the printed commands for its role group. The commands download a join bundle from the first controller with curl, extract it, and run node join. Join controllers one at a time. For automation, start the install as a task that can run while you execute the join steps on the other hosts. You can also request join commands through the API.

  3. Watch the Joined, Required, and Ready counts. When the joined hosts exactly match the requested topology and are ready and up to date, the installer continues automatically with infrastructure, application preflights, and deployment. It prints the admin console URL when it completes.

If the install is interrupted, rerun the same install command on the first controller. The installer uses the saved topology and prints join commands for hosts that still need to join. See Resume an interrupted installation.

To supply an expected topology in the Installation Wizard, pass the same --node flags and omit --headless. The Add Hosts step shows the required and actual counts. You can also open the wizard without --node and choose which hosts to add during installation.

(Optional) Bypass preflight failures during headless installation​

In headless installations, you can allow the installation to continue when preflight checks fail. The checks still run and their results are still recorded. Only the decision to stop on a failure changes. This is useful for automated installations in development environments.

These flags apply to headless installations only. In the installer UI, the user is offered Continue Anyway on any failure that is not marked as required, whether or not these flags were passed. Users can also ignore application checks in the installer UI while they run. For more information about ignoring application checks, see Ignore application checks while they run in Configure Embedded Cluster.

Bypassing host preflight failures is not recommended for production installations.

To bypass preflight failures, add either or both of the following flags to the install command:

--ignore-host-preflights --ignore-app-preflights

Neither flag overrides a required check, whether the application vendor marked it with strict: true or it is a required built-in Embedded Cluster check. Neither flag applies when the preflight run itself fails to execute or to produce a result. In both cases the installation stops. For more information, see Whether users can bypass a failed check.

Resume an interrupted installation​

If an installation is interrupted, for example by Ctrl+C, a crash, or a host reboot, rerun the same install command on the same host. Embedded Cluster detects the incomplete installation and continues from the phase it reached, rather than requiring you to reset the host and start again. This applies to installations performed with the UI and to headless installations.

When an interrupted installation is detected, the installer asks whether to resume it. Pass --yes to answer that prompt automatically in scripted installations.

If the application is already fully installed, this is not an interrupted installation, and the command directs you to use upgrade instead.

note

Upgrades do not resume. When an upgrade is interrupted or fails, the incomplete revision blocks a new attempt until you rerun upgrade with the --force flag. See upgrade.

Flags that a resumed installation ignores​

The cluster was already provisioned using the values from the original attempt, so a resumed installation keeps those values and ignores the following flags:

--api-port, --cidr, --data-dir, --http-proxy, --https-proxy, --network-interface, --no-proxy, --roles

If you pass any of them with a different value, the installer prints a warning naming the flags it ignored and continues with the saved values. This matters most when the interruption and the flag are related. For example, if you stopped an installation to correct a wrong --cidr or --http-proxy, rerunning install with the corrected value does not apply it.

The deprecated --installer-port flag is an alias for --api-port, so a resumed installation also ignores it, without a warning.

To change any of these values, reset the host and install again. See reset.