Cluster installation and operations
KOTS installation and operations provide the paths that turn a Kubernetes cluster into an Admin Console environment and keep that environment usable over time. The system supports direct CLI installation, generated manifests for controlled deployment, browser-based cluster management, and separate node actions for kURL and embedded clusters.
Installation surfaces
The installation surfaces serve different operator needs while leading to the same Admin Console environment. The CLI is the guided path for a first install. Generated manifests support review or change before deployment. The web surface reports when a Helm-based installation is needed and then uses the Admin Console after it is present.
CLI installation
The kots install command accepts an upstream application source or an air-gap bundle and prepares the Admin Console and application for the target cluster. It validates the license and release choice, selects a namespace, checks cluster access, and passes installation settings into the deployment step.
The command supports online and air-gap use. It can also provide configuration, registry access, storage, proxy, RBAC, and access settings before deployment so the resulting environment can proceed with less operator input. The command waits for the Admin Console and application work when a license is present. It then checks the preflight outcome before deployment continues. A preflight notice blocks deployment unless --skip-preflights is set. That option allows notices and non-strict checks to pass while strict checks still apply. The command gives the operator a local console URL when the console is included.
References: cmd/…/install.go• L60-70 cmd/…/install.go• L102-227 cmd/…/install.go• L232-396 cmd/…/install.go• L405-550 cmd/…/install.go• L995-1156 cmd/…/install_inpackage_test.go• L14-27
Manifest installation
Manifest installation separates creation of the Admin Console resource set from its deployment. The admin-console generate-manifests command writes the resources to a local directory so an operator can inspect or edit them before applying them to a cluster.
The generated resource set describes the Admin Console workload, service, service account, storage choice, and permissions. It can use broad cluster access or a minimal namespace-based access model. This surface is useful when cluster changes must pass through a review or another deployment system rather than through the install command itself.
References: cmd/…/admin-console-generate-manifests.go• L19-24 cmd/…/admin-console-generate-manifests.go• L60-96 pkg/…/admin-console.go• L45-99 pkg/…/kotsadm.go• L23-82
Helm installation boundary
The Helm installation surface identifies a cluster where the Admin Console is expected to be supplied by a Helm chart. The /install-with-helm screen does not install the chart itself. It waits for the application list to show that the chart-based installation is ready, then returns the operator to the application area.
This boundary keeps external Helm deployment separate from the Admin Console's later application and cluster workflows. Operators using this path should follow the Helm installation process first, then use the console for the capabilities that become available after installation.
References: web/…/InstallWithHelm.tsx• L5-15 web/…/InstallWithHelm.tsx• L17-49 web/…/Root.tsx• L796-800
Admin Console environment
The Admin Console environment is the cluster-side service that stores application state, exposes the operator UI, and connects application actions to Kubernetes resources. Installation establishes this environment before it asks the Admin Console to process the application release.
Resource and access model
The environment includes a workload and network service for the Admin Console. It also includes a service account and the permissions needed to manage the application namespaces. Storage settings determine whether the Admin Console uses a Deployment with local supporting storage or a StatefulSet with persistent storage.
The access model follows the application's needs and the operator's selected scope. A cluster-scoped model gives the Admin Console broad permissions. A minimal model uses namespace-level roles and bindings for the Admin Console namespace and any additional application namespaces declared by the application.
References: pkg/…/kotsadm.go• L23-82 pkg/…/kotsadm.go• L119-153 pkg/…/kotsadm.go• L156-224 pkg/…/kotsadm.go• L380-415
Admin Console access
The kots admin-console command provides a local browser path to an in-cluster Admin Console. It waits for the Admin Console workload to become ready, forwards a local port to service port 3000, and reports the actual local address.
The install command can start this path as part of installation. An operator can start it later without changing the cluster. This makes browser access a temporary operator connection rather than a condition of the Admin Console workload itself.
References: cmd/…/admin-console.go• L16-20 cmd/…/admin-console.go• L31-68 cmd/…/admin-console.go• L82-98 cmd/…/install.go• L518-548
Installation state
Installation state moves from cluster preparation to application release work. The Admin Console receives the application metadata and any air-gap archive after its service is reachable. It then tracks automated install work and preflight work before the application becomes deployed.
When the environment is an embedded cluster, the cluster-management confirmation step resolves the first pending application version into one of three states: configuration required, preflight checks required, or ready for deployment. The web flow uses that state to send the operator to the correct next step.
References: cmd/…/install.go• L438-516 cmd/…/install.go• L995-1155 pkg/…/embedded_cluster_confirm_cluster_management.go• L21-98 web/…/EmbeddedClusterManagement.tsx• L378-420
Cluster management surfaces
Cluster management gives an operator a view of node health and a small set of safe cluster actions. The web console selects the surface from installation metadata: kURL installations use the kURL node view, while embedded-cluster installations use the embedded-cluster view.
kURL cluster management
The kURL surface lists cluster nodes and refreshes their status while the page is open. A cluster administrator can request a time-limited join command for a primary or secondary node, drain a node before removal, and delete a node when the cluster supports the required removal service.
The page treats primary and secondary nodes differently. Primary nodes provide high availability when the cluster supports it. Secondary nodes are intended for application workloads. Drain and delete are separate actions because draining moves workloads away from a node while deletion removes the node from the cluster.
References: web/…/KurlClusterManagement.jsx• L35-77 web/…/KurlClusterManagement.jsx• L126-167 web/…/KurlClusterManagement.jsx• L169-245 pkg/…/kurl_get.go• L11-25 pkg/…/kurl_node_join_command.go• L17-95
Embedded-cluster management
The embedded-cluster surface lists node readiness, roles, resource use, and pressure conditions. It can show node details and can generate join commands for selected node roles. During the first installation it also acts as a setup step before the application flow continues.
The surface supports the embedded cluster's own role model instead of assuming only primary and secondary nodes. A cluster administrator selects the roles for a new node, copies the generated command sequence, and runs it on the machine that will join the cluster. Later operations can drain or delete a named node through the same protected management surface.
References: web/…/EmbeddedClusterManagement.tsx• L64-95 web/…/EmbeddedClusterManagement.tsx• L97-230 web/…/EmbeddedClusterManagement.tsx• L422-445 web/…/EmbeddedClusterManagement.tsx• L544-660 pkg/…/embedded_cluster_get.go• L14-82 pkg/…/embedded_cluster_node_join_command.go• L20-58
Node lifecycle actions
Node actions follow a common lifecycle across the two cluster types. The console reads the current node view, generates a join command when a new machine is needed, drains a node before disruptive work, and deletes the node only after the operator confirms the action.
These actions are protected by cluster read or cluster write policy. Embedded-cluster handlers reject requests when the current environment is not an embedded cluster. Both management paths return not-found results for unknown nodes. The kURL delete path also reports when its cluster removal service is not available.
References: pkg/…/handlers.go• L281-313 pkg/…/kurl_drain_node.go• L15-44 pkg/…/kurl_delete_node.go• L16-55 pkg/…/embedded_cluster_drain_node.go• L16-51 pkg/…/embedded_cluster_delete_node.go• L16-56
Maintenance and upgrade paths
Maintenance keeps the Admin Console and its application state aligned with the cluster over time. The available path depends on whether the operator is refreshing the Admin Console itself, downloading a new application release, or applying an application update.
Admin Console upgrades
The admin-console upgrade command refreshes the Admin Console workload to the CLI's current Admin Console version. It checks access, preserves the storage model already in use, updates the workload resources, and waits for the result.
The command does not treat all environments as interchangeable. A kURL-created Admin Console requires an explicit force choice because the upgrade can cause data loss. Automatic Admin Console updates are also rejected for kURL and air-gap installations through the web update path, so those environments use their supported operator-controlled upgrade route.
References: cmd/…/admin-console-upgrade.go• L23-54 cmd/…/admin-console-upgrade.go• L56-128 pkg/…/update.go• L216-241
Application upgrades
Application upgrades are separate from Admin Console upgrades. The upgrade service checks that a selected release is valid for the app, its channel, its current cluster state, and its air-gap or online source. It then starts a task that can run beyond the initial HTTP request while the console reports progress.
Online updates obtain release content from the upstream service. Air-gap updates use the supplied bundle and its registry or local artifact path. In embedded-cluster installations, the upstream update endpoint accepts either an online request or a multipart air-gap bundle and turns it into the next application version.
References: pkg/…/upgrade_service.go• L43-105 pkg/…/upgrade_service.go• L108-203 pkg/…/update.go• L379-438 pkg/…/update.go• L440-513
Upgrade service boundary
The upgrade service is a short-lived service that performs the selected application upgrade outside the main request. The Admin Console starts it with the release and cluster context, monitors its task status, and proxies the upgrade UI and API through a stable path.
This boundary lets an upgrade continue while the operator watches status in the browser. It also keeps release checks in the Admin Console before the longer deployment process begins.
References: pkg/…/handlers.go• L337-346 cmd/…/upgrade-service.go• L15-62 pkg/…/process.go• L100-161
Operator paths
The main paths are related but should be chosen for different goals. The command-line child page covers detailed CLI workflows. The embedded-cluster child page covers node operations and embedded-cluster-specific behavior.
| Goal | Primary surface | Result |
|---|---|---|
| Install the Admin Console and an application | kots install | A working Admin Console environment and an application release in the cluster |
| Review or edit Admin Console resources before deployment | admin-console generate-manifests | Local manifests for controlled application to the cluster |
| Open the browser console from a workstation | kots admin-console | Temporary local access to the in-cluster service |
| Inspect or change cluster nodes | Web Cluster Management | Node state, join commands, drain actions, or delete actions |
| Refresh the Admin Console | kots admin-console upgrade | A newer Admin Console workload using the existing environment's storage model |
| Apply a newer application release | Upgrade service or upstream update path | A checked application version and its deployment task |
See KOTS command-line workflows for command-specific application, configuration, backup, and access flows. See Embedded cluster operations for the embedded-cluster node lifecycle and related cluster actions.
Change checklist
When these files or sections are changed, remember to consider these:
- Keep the CLI install options, generated manifest settings, and Admin Console resource model aligned. A setting accepted by one installation surface must not produce a different access or storage model in another.
- Keep the Admin Console Service port, local port-forward target, and browser access instructions aligned.
- Keep cluster-management route paths, access policies, UI requests, and response shapes aligned for both kURL and embedded-cluster modes.
- When node roles or join-command data change, review the role selection UI, command output, token lifetime, and the node-side join contract together.
- When upgrade eligibility changes, review online releases, air-gap bundles, channel checks, embedded-cluster version checks, and the upgrade task status path.
- When RBAC scope changes, review both the installing user's permission check and the Admin Console service account's access to application namespaces.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| The target Kubernetes context or namespace is wrong | The install or access command cannot find or reach the intended Admin Console | Select the target context and namespace before starting the workflow |
| The installer lacks the permissions needed to grant or use Admin Console access | Resource creation, preflight work, or application management stops | Keep the RBAC check enabled or verify the replacement permission model first |
| The Admin Console workload is not ready within the wait period | Installation cannot finish its status checks and local access cannot start | Check workload health before increasing the wait duration |
| A preflight notice or required check fails | The application version is not deployed | Review the returned preflight results; use --skip-preflights only when non-strict notices or checks do not block the install |
| An air-gap bundle, registry, or channel does not match the installation | Release content or images cannot be accepted for install or upgrade | Validate bundle metadata, registry access, license channel, and current cluster version |
| A node is deleted before workloads are drained | Workloads or node data may be lost | Drain the node first and confirm the removal action |
| The kURL removal service is absent | kURL node deletion is rejected | Install or restore the required cluster removal service before retrying |
| The Admin Console is upgraded through an unsupported kURL or air-gap path | The update is rejected or may risk data loss | Use the supported operator-controlled upgrade path and force kURL upgrades only after explicit review |
Key files
| File | Why to read it |
|---|---|
| cmd/…/install.go | Shows the first-install boundary from release input to Admin Console access and application status. |
| cmd/…/admin-console.go | Shows the repeatable local browser access path. |
| cmd/…/admin-console-generate-manifests.go | Shows the reviewed-manifest installation surface. |
| cmd/…/admin-console-upgrade.go | Shows the Admin Console maintenance and environment-specific upgrade rules. |
| pkg/…/admin-console.go | Shows how installation settings become a durable Admin Console resource set. |
| pkg/…/kotsadm.go | Shows the high-level workload, storage, service, service account, and access model. |
| pkg/…/handlers.go | Shows the protected HTTP surface for kURL, embedded-cluster, and upgrade operations. |
| web/…/KurlClusterManagement.jsx | Shows the kURL node view and primary or secondary node actions. |
| web/…/EmbeddedClusterManagement.tsx | Shows the embedded-cluster setup and node-management surface. |
| pkg/…/embedded_cluster_node_join_command.go | Shows how embedded-cluster role choices become a join response. |
| pkg/…/upgrade_service.go | Shows release checks and the long-running application upgrade boundary. |
| pkg/…/update.go | Shows the Admin Console update restrictions and embedded-cluster online or air-gap update entry point. |