Skip to main content

Performing Updates in Embedded Clusters (Beta)

This topic describes how to perform updates for Replicated Embedded Cluster installations.

note

Embedded cluster is in beta. If you are instead looking for information about Replicated kURL, see Performing Updates in kURL Clusters.

Overview

When you update an application installed with Embedded Cluster, you update both the application and the cluster infrastructure together, including Kubernetes, KOTS, and other components running in the cluster. There is no need or mechanism to update the infrastructure on its own.

When you deploy a new version, any changes to the cluster are deployed first. The Admin Console waits until the cluster is ready before updatng the application.

Any changes made to the Embedded Cluster Config, including changes to the Embedded Cluster version, Helm extensions, and unsupported overrides, trigger a cluster update.

When performing an upgrade with Embedded Cluster, the user is able to change the application config before deploying the new version. Additionally, the user's license is synced automatically. Users can also make config changes and sync their license outside of performing an update. This requires deploying a new version to apply the config change or license sync.

The following diagram demonstrates how updates are performed with Embedded Cluster in online (internet-connected) environments:

Embedded Cluster updates Kubernetes and an app in a customer environment

View a larger version of this image

As shown in the diagram above, users check for available updates from the KOTS Admin Console. When deploying the new version, both the application and the cluster infrastructure are updated as needed.

Update in Online Clusters

important

Do not downgrade the Embedded Cluster version. This is not supported but is not prohibited, and it can lead to unexpected behavior.

To perform an update with Embedded Cluster:

  1. In the Admin Console, go to the Version history tab.

    All versions available for upgrade are listed in the Available Updates section:

    Version history page

    View a larger version of this image

  2. Click Deploy next to the target version.

  3. On the Config screen of the upgrade wizard, make any necessary changes to the configuration for the application. Click Next.

    Config screen in the upgrade wizard

    View a larger version of this image

    note

    Any changes made on the Config screen of the upgrade wizard are not set until the new version is deployed.

  4. On the Preflight screen, view the results of the preflight checks.

    Preflight screen in the upgrade wizard

    View a larger version of this image

  5. On the Confirm screen, click Deploy.

    Confirmation screen in the upgrade wizard

    View a larger version of this image

    During updates, the Admin Console is unavailable. A modal is displayed with a message that the update is in progress.

    note

    KOTS can experience downtime during an update, such as in single-node installations. If downtime occurs, refreshing the page results in a connection error. Users can refresh the page again after the update is complete to access the Admin Console.

Update in Air Gap Clusters (Alpha)

important

Embedded Cluster installations in air gap environments in an Alpha feature. This feature is subject to change, including breaking changes. To get access to this feature, reach out to Alex Parker at [email protected].

important

Do not downgrade the Embedded Cluster version. This is not supported but is not prohibited, and it can lead to unexpected behavior.

To upgrade an installation, new air gap bundles can be uploaded to the Admin Console from the browser or with the Embedded Cluster binary from the command line.

Using the binary is faster and allows the user to download the air gap bundle directly to the machine where the Embedded Cluster is running. Using the browser is slower because the user must download the air gap bundle to a machine with a browser, then upload that bundle to the Admin Console, and then the Admin Console can process it.

Upload the New Version From the Command Line

To update by uploading the air gap bundle for the new version from the command line:

  1. SSH onto a controller node in the cluster and download the air gap bundle for the new version using the same curl command that you used to install. For example:

     curl -f https://replicated.app/embedded/APP_SLUG/CHANNEL_SLUG?airgap=true -H "Authorization: LICENSE_ID" -o APP_SLUG-CHANNEL_SLUG.tgz

    For more information, see Install.

  2. Untar the tarball. For example:

    tar -xvzf APP_SLUG-CHANNEL_SLUG.tgz

    Ensure that the .airgap air gap bundle is present.

  3. Use the update command to upload the air gap bundle and make this new version available in the Admin Console. For example:

    ./APP_SLUG update --airgap-bundle APP_SLUG.airgap
  4. When the air gap bundle has been uploaded, open a browser on the same machine and go to the Admin Console.

  5. On the Version history page, click Deploy next to the new version.

    Version history page

    View a larger version of this image

  6. On the Config screen of the upgrade wizard, make any necessary changes to the configuration for the application. Click Next.

    Config screen in the upgrade wizard

    View a larger version of this image

    note

    Any changes made on the Config screen of the upgrade wizard are not set until the new version is deployed.

  7. On the Preflight screen, view the results of the preflight checks.

    Preflight screen in the upgrade wizard

    View a larger version of this image

  8. On the Confirm screen, click Deploy.

    Confirmation screen in the upgrade wizard

    View a larger version of this image

Upload the New Version From the Admin Console

To update by uploading the air gap bundle for the new version from the Admin Console:

  1. On a machine with browser access (for example, where you accessed the Admin Console to configure the application), download the air gap bundle for the new version using the same curl command that you used to install. For example:

     curl -f https://replicated.app/embedded/APP_SLUG/CHANNEL_SLUG?airgap=true -H "Authorization: LICENSE_ID" -o APP_SLUG-CHANNEL_SLUG.tgz

    For more information, see Install.

  2. Untar the tarball. For example:

    tar -xvzf APP_SLUG-CHANNEL_SLUG.tgz

    Ensure that the .airgap air gap bundle is present.

  3. On the same machine, use a browser to access the Admin Console.

  4. On the Version history page, click Upload new version and choose the .airgap air gap bundle you downloaded.

  5. When the air gap bundle has been uploaded, click Deploy next to the new version.

  6. On the Config screen of the upgrade wizard, make any necessary changes to the configuration for the application. Click Next.

    Config screen in the upgrade wizard

    View a larger version of this image

    note

    Any changes made on the Config screen of the upgrade wizard are not set until the new version is deployed.

  7. On the Preflight screen, view the results of the preflight checks.

    Preflight screen in the upgrade wizard

    View a larger version of this image

  8. On the Confirm screen, click Deploy.

    Confirmation screen in the upgrade wizard

    View a larger version of this image