# Install and sign in

Run the bootstrap against your prepared cluster, follow its nine steps and the operator's phases to Ready, and sign in as the first administrator.

With a clean preflight, the install is one command. `ktctl bootstrap` checks the cluster again, installs the service mesh, the certificate manager and the platform operator, applies your licence and configuration, then watches the operator build the platform until it reads **Ready**. Plan for up to 30 minutes: that is the bootstrap's own limit for the whole run.

**Who can use it:** your platform team, from the install machine, with cluster-admin rights. The first sign-in belongs to the administrator named in `admin_email`.

## Prerequisites

- A clean run of `ktctl preflight` from [Check readiness](/security/installation-journey/check-readiness), with the same `katonic.yml`.
- The certificate and key files from [Prepare network, DNS and certificates](/security/installation-journey/prepare-network-dns-and-certificates). The certificate file holds the full chain: your certificate and at least one issuing certificate.
- Your licence file or licence key, and registry credentials unless your licence key supplies them.

## Run the bootstrap

  
**Step 1. Choose the command for your licence**

With a licence file:

```bash
ktctl bootstrap --config katonic.yml --license license.json \
  --tls-cert tls.crt --tls-key tls.key \
  --docker-user REGISTRY_USER --docker-pass REGISTRY_TOKEN \
  --skip-cluster
```

    With a licence key and your own configuration file, the licence is fetched for you, but registry credentials are still needed:

```bash
ktctl bootstrap --config katonic.yml --license-key YOUR_LICENCE_KEY \
  --tls-cert tls.crt --tls-key tls.key \
  --docker-user REGISTRY_USER --docker-pass REGISTRY_TOKEN \
  --skip-cluster
```

    With a licence key and **no** configuration file, the bootstrap fetches everything prepared for your licence: the configuration, the licence, the seed data and a pull credential. Drop `--config` and the registry flags.

    Always pass `--skip-cluster` on a cluster you already run. It tells the bootstrap not to provision infrastructure, and it is what turns on the cluster checks and the confirmation prompt in the first step. Keep the default `katonic` namespace.

  
**Step 2. Confirm the cluster**

The bootstrap prints the kubeconfig context and API server, and asks whether to install into that cluster. Check it is the right one before you answer. `--yes` answers for you; use it only in automation.

  
**Step 3. Watch the nine steps**

| Step | What happens |
| --- | --- |
| 1 | Cluster checks: tools, version, capacity, registry, storage classes and the shared volume probe |
| 2b | The database, node limit and proxy checks from the preflight; any failure stops here |
| 3 | The service mesh and certificate manager, unless you declared them yours; the policy engine unless you declined it |
| 4 | The TLS secret from your certificate and key |
| 5 | The platform operator |
| 6 | The licence, its signing keys and the seed data |
| 7 | Your configuration, turned into the platform resource |
| 8 | The platform resource applied |
| 9 | Each operator phase as it changes, until Ready |

Step 1 stops at its first failure; step 2b prints all its failures together. The service mesh, the operator and the platform are installed only after both pass.

  
**Step 4. Follow the phases**

The operator builds the platform in phases: prerequisites, database operators, infrastructure, the secrets store, backup, identity, monitoring, the core services, the distributor plane on AI Cloud, the auxiliary services, the interface, networking and validation. Step 9 prints each change. When the platform is ready it prints **Platform is ready!** and the platform address.

## Air-gapped installs

The steps are the same, with three differences. The images come from your private registry, loaded from the air-gap bundle for your version; `air_gap.enabled` and `air_gap.private_registry` in the configuration point the install at it. The licence is a file, and the seed data, its signing key and the promotion keys are passed with `--seed-data`, `--bundle-pubkey` and `--promotion-jwks`, because there is no OpsHub to fetch them from. And the databases, cache and object storage always run in the cluster. Install without internet access has the full commands.

## If a phase fails

If a phase fails on a first install, the platform stays in **Installing** while the operator retries every 30 seconds, and the bootstrap gives up at its 30 minute limit. Do not wait it out: open a second terminal, run `ktctl status` to see which phase is failing and why, and follow Platform not ready.

## Sign in for the first time

Open `https://` and your domain in a browser and sign in with the administrator's email. If you set `admin_password` in the configuration, use it. If you did not, the operator generated one:

```bash
kubectl -n katonic get secret katonic-platform-admin -o jsonpath='{.data.password}' | base64 -d
```

Either way it is a temporary password: the platform makes you choose a new one at this first sign-in. `ktctl rotate-admin-password` sets a new one later if it is lost.

## Verify

```bash
ktctl status
```

- **Phase** reads **Ready**, and the rows in the phases table read **Complete**. Monitoring and configuration apply are advisory: if one of them is still failing, the platform is Ready all the same and the row says why, so fix it without treating the install as failed.
- The sign-in page opens on your domain with your certificate.
- On AI Cloud, the distributor console opens at the platform address.

## Run it again safely

The bootstrap is safe to run again with the same configuration: it updates what exists rather than duplicating it, and on a second run the licence flags can be left out because the licence is already in the cluster. If a run fails after it has started changing the cluster, it prints the exact commands to remove what it created. Removing an installation deletes its namespaces and every volume in them, so take a backup of anything you need first.

## Related

- [Check readiness](/security/installation-journey/check-readiness)
- [After the install](/security/installation-journey/after-the-install)
- Platform not ready
- The platform operator

Source: https://docs.katonic.ai/security/installation-journey/install-and-sign-in
