# Check readiness

Set up the install machine, write the install configuration, run the preflight and check capacity and storage, so the install day starts from a cluster you know is ready.

Run these checks a few days before the install, not on the day. They change nothing on the cluster, and what they find usually needs another team: a node setting, a firewall rule, a database login. The bootstrap runs every check again before it installs anything, so a clean result here means a short install day.

**Who can use it:** your platform team, from the install machine, with cluster-admin rights. Nothing here needs a product role.

## Prerequisites

- The cluster from [Prepare the cluster](/security/installation-journey/prepare-the-cluster), and DNS and the certificate from [Prepare network, DNS and certificates](/security/installation-journey/prepare-network-dns-and-certificates).
- If you chose managed PostgreSQL, its secret in the `katonic` namespace from [Prepare managed services](/security/installation-journey/prepare-managed-services).

## Set up the install machine

Use a jump host in the same network as the cluster, reached over your VPN and limited to the people who install and upgrade. It needs:

- `ktctl` for your release, with its checksum verified.
- `kubectl` and `helm` on the path, and `bash` and `base64`.
- A kubeconfig with cluster-admin rights, whose current context is the target cluster. The installer needs these rights only while it installs and upgrades.
- Outbound access to the registry and OpsHub, or, air-gapped, to your private registry.

## Write the configuration

Create `katonic.yml` from the decisions in [Plan the installation](/security/installation-journey/plan-the-installation). Four fields are required; everything else has a default.

```yaml
version: "7.0.12"
domain: "ai.example.com"
admin_email: "admin@example.com"
datalake:
  storage_class_name: "your-rwx-class"

cloud_provider: "onprem"
sizing: "starter"
platform_mode: "singletenancy"
```

Add the blocks your choices need: `database` for managed PostgreSQL, `networking.proxy` and `networking.trust_bundle_file` for a proxy and a private authority, `air_gap` when air-gapped, `scheduling` for dedicated or GPU nodes, and `backup` once you have a bucket outside the cluster.

Check every key against this documentation. The installer ignores a key it does not recognise rather than failing, so a misspelt key silently leaves its default in place. Leave `admin_password` out to have one generated; never commit the file with a password or licence key in it.

## Run the preflight

```bash
ktctl preflight --config katonic.yml
```

The preflight runs a short-lived pod on the cluster and prints one row per check:

| Check | What it verifies |
| --- | --- |
| `node-limits` | Every node allows `vm.max_map_count` of 262144 and a hard open-files limit of 500000 |
| `postgres` | With managed PostgreSQL: reachable, TLS and login work, version 16, `max_connections` high enough, every required database present |
| `proxy-cidrs` | With a proxy: the pod and service ranges are known, so pod traffic bypasses the proxy |

Every failure is printed at once. With managed PostgreSQL, add `--docker-user` and `--docker-pass`, because the check pod pulls the platform's image.

## Check capacity and storage

The preflight does not check capacity or storage; the bootstrap does, in its first step, before it installs anything. Check them yourself now so they do not stop the install day:

```bash
kubectl get nodes -o custom-columns=NAME:.metadata.name,CPU:.status.allocatable.cpu,MEMORY:.status.allocatable.memory
kubectl get storageclass
```

- The total allocatable CPU and memory of ready nodes is above the floor for your tier, listed in [Prepare the cluster](/security/installation-journey/prepare-the-cluster).
- The classes you named in the configuration exist, and the shared one is read-write-many.
- At least two nodes can run pods, for the shared volume test the bootstrap runs.

## Verify

The preflight prints no failure, the capacity and storage checks above hold, and both DNS names resolve. You are ready for [Install and sign in](/security/installation-journey/install-and-sign-in).

## Troubleshooting

- **node-limits fails.** Raise `vm.max_map_count` and the open-files limit on the nodes named, in the node image so new nodes inherit them, then run the preflight again.
- **postgres fails.** The row says which part failed: the connection, TLS, the version, the connection limit or a missing database. See [Prepare managed services](/security/installation-journey/prepare-managed-services).
- **proxy-cidrs fails.** Add the ranges under `networking.proxy.cluster_cidrs`, with `pods` and `services`.
- **A check cannot apply to you.** `--skip-check` with its name skips it. When you pass it to the bootstrap, the skip is recorded on the platform with who ran it. Use it only when you know why the check fails and that the platform does not need it.

## Related

- [Prepare the cluster](/security/installation-journey/prepare-the-cluster)
- [Install and sign in](/security/installation-journey/install-and-sign-in)
- [Installation checklist](/security/installation-journey/installation-checklist)
- Install the platform

Source: https://docs.katonic.ai/security/installation-journey/check-readiness
