Skip to main content

Step 4: Install KOTS

Get the installation commands from the Unstable channel so that you can test the installation process for the application release that you promoted. The first step in installing and deploying the application in a cluster is to install KOTS.

KOTS lets your users install, manage, and upgrade your application. Users can interact with KOTS through the Admin Console or through the KOTS CLI.

KOTS can be either installed in an existing Kubernetes cluster or in an embedded cluster created by Replicated kURL.

Choose either installation option:

Install in an Existing Cluster

To install KOTS in an existing cluster:

  1. Make sure your kubectl context is set to your cluster.

  2. Copy the KOTS Install command from the Unstable channel in the Vendor Portal.

    Installation Methods

    The script installs the latest KOTS version as a kubectl plugin. For more information about installing an application with the KOTS CLI, see install in the KOTS CLI documentation.


    curl | bash
    kubectl kots install my-test-app/unstable
  3. For Enter installation path (leave blank for /usr/local/bin):, use the default and press Enter.

  4. For Enter a new password to be used for the Admin Console:, provide a password to access the Admin Console. You use this password in a later step to access the Admin Console and deploy the application.

    When the Admin Console is ready, the script prints the https://localhost:8800 URL where you can access the Admin Console.

    Example output:

    Enter the namespace to deploy to: my-app-unstable
    • Deploying Admin Console
    • Creating namespace ✓
    • Waiting for datastore to be ready ✓
    Enter a new password to be used for the Admin Console: ••••••••
    • Waiting for Admin Console to be ready ✓

    • Press Ctrl+C to exit
    • Go to http://localhost:8800 to access the Admin Console
  5. Go to the Next step section.

Install in an Embedded Cluster

You can run the kURL installation script on a VM or bare metal server to create the embedded cluster and install KOTS.

To install KOTS in an embedded cluster:

  1. Use SSH to authenticate to the VM that you created as part of Set Up the Environment.


    gcloud compute ssh NAME

    Replace NAME with the name of the cluster.

  2. Copy the Embedded Cluster command from the Unstable channel in the Vendor Portal and run it on the cluster.

    Installation Methods


    curl -sSL | sudo bash

    This script installs Docker, Kubernetes, and the Admin Console containers (kotsadm).

    Installation takes approximately 5-10 minutes.

  3. Note the connection URL and password that displays in the output. The password is not shown again. You must use these in a later step to deploy the Admin Console.

    Example output:

    Kotsadm: http://[ip-address]:8800
    Login with password (will not be shown again): [password]
  4. Reload your shell to access the cluster with kubectl:

    bash -l
  5. Run a kubectl command to test that kubectl is working.


    kubectl get pods

    Example output:

    NAME                                  READY   STATUS    RESTARTS   AGE
    kotsadm-79dcb4dc7d-2xh85 1/1 Running 0 60m
    kotsadm-postgres-0 1/1 Running 0 60m
    kurl-proxy-kotsadm-5f7fb75f47-b7jbz 1/1 Running 0 60m

    At this point, Kubernetes and the Admin Console are running, but the application is not deployed yet.

Next Step

Continue to Step 5: Deploy the Application to log in to the Admin Console and deploy the application.