> ## Documentation Index
> Fetch the complete documentation index at: https://inframan.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create an infrastructure

> Every field on the create form, its default on each cloud, and what happens between clicking provision and deploying your first app.

Creating an infrastructure provisions a Kubernetes cluster and its network in a [connected cloud account](https://inframan.mintlify.site/provision/cloud-accounts.md), then installs the platform on it: ingress, certificates, builds and monitoring. It usually takes 10 to 15 minutes, plus the minute or two you spend running one setup script.

## Before you begin

* A cloud account with the status **verified**.
* The **Admin** role on your Inframan instance.

## Create it

**1. Open the form**

Go to **Infrastructure** and click **New Infrastructure**. If you have none yet, click **Provision Infrastructure**. The form is titled **Configure Your Infrastructure**.

**2. Choose the account and tag**

Pick a **Cloud account**. Only verified accounts are listed, and the cloud is taken from the account.

Leave the tag on **non-prod**. Production infrastructures aren't available yet.

**3. Decide on zero-trust security**

The **Zero-trust security** switch is off by default. Turn it on to get Kubernetes Network Policy on the cluster and an Istio sidecar in every application pod.

> [!WARNING]
>
> You can't change this after the infrastructure exists. Read [Network security](https://inframan.mintlify.site/secure/network.md) before you decide.

**4. Choose where images are built**

* **In this infrastructure** (the default) runs each build as a Job on the infrastructure's own build node pool, kept apart from the pools that serve traffic.
* **Builder machines** runs builds on short-lived build machines that exist only for the build. Available on Google Cloud only.

Both build from your `Dockerfile`. See [Builds](https://inframan.mintlify.site/deploy/builds.md).

**5. Name it and pick a region**

Enter an **Infrastructure name**, unique within the cloud account, and choose a **Region**.

**6. Set up node pools**

Node pools hold your applications. The platform's own pools are added for you. Click **Add pool** for more than one.

> [tab] Google Cloud
>
> | Field | Default | Notes |
> | - | - | - |
> | Machine type | `e2-standard-4` | 18 types across the e2, n2, n2d and c2 families |
> | Disk size | 50 GB | |
> | Disk type | `pd-balanced` | |
> | Min nodes | 0 | The pool can shrink to zero nodes when nothing runs on it |
> | Max nodes | 5 | |
> | Initial nodes | 1 | |
> | spot | On | Spot nodes cost much less and can be reclaimed by Google at short notice |
>
> Nodes repair and upgrade themselves automatically.

> [tab] AWS
>
> Each pool is a Karpenter node pool. Karpenter picks the instance that fits the pods waiting to run, from the sizes and families you allow.
>
> | Field | Default | Choices |
> | - | - | - |
> | Capacity | Spot | Spot or On-demand |
> | Instance sizes | 2, 4 and 8 vCPU | 2, 4, 8 and 16 vCPU |
> | Instance families | c, m and t | c, m, r and t |
> | vCPU limit | 32 | At least the largest size you allow, at most 1,000 |
> | Disk | 50 GiB | 20 to 500 GiB |

See [Node pools](https://inframan.mintlify.site/provision/node-pools.md) for how services choose a pool.

**7. Check the network ranges (Google Cloud)**

On Google Cloud the form fills in three ranges that don't overlap your other infrastructures: **Primary subnet**, **Pod CIDR** and **Service CIDR**, each a `/20`. The pod range limits how many pods each node can run, so keep it at least this large. On AWS the network is created for you as `10.0.0.0/16`.

**8. Provision**

Click **Provision cluster**.

## Watch it come up

The infrastructure page shows each step as it runs:

1. **State bucket.** Where Inframan keeps the Terraform state for this infrastructure, in your account.
2. **Network.** The VPC, subnets and NAT gateway.
3. **Cluster.** The longest step. On AWS it's followed by Karpenter and the EKS add-ons.
4. **One-time setup.** Provisioning pauses here. See the next section.
5. **Namespaces and priority classes.**
6. **Tools volume.** A shared cache for the platform's own jobs.
7. **Platform apps.** CI/CD, the gateway and monitoring. See [What every infrastructure includes](https://inframan.mintlify.site/provision/landing-zone.md).

### The one-time setup

Once the cluster exists, a banner says **Provisioning is paused for one setup**. Some identities can only be created after the cluster exists, such as the identity your builds push images with. Copy the script, run it in Cloud Shell or AWS CloudShell, and click **Verify**. Provisioning continues by itself.

The [permissions reference](https://inframan.mintlify.site/provision/permissions.md) lists exactly what this script creates on each cloud.

### When it's ready

The infrastructure becomes **Ready** as soon as CI/CD is installed, so you can start creating applications. The gateway and monitoring may still be finishing. A deploy that needs the gateway waits for it, for up to 40 minutes.

## Statuses

| Status | Meaning |
| - | - |
| **Provisioning** | Steps are running. |
| **Needs setup** | Waiting for you to run the one-time setup script. |
| **Ready** | You can deploy. |
| **Partially ready** | The cluster works, but a platform app didn't install. Click **Retry**. |
| **Failed** | A step failed. The step shows the error. Click **Retry** to run it again with the same settings. |
| **Destroying** | Teardown is running. |
| **Deletion failed** | Teardown stopped. Click **Resume deletion**. |
| **Action required** | Teardown finished, but left identities you need to delete. See [Destroy an infrastructure](https://inframan.mintlify.site/provision/destroy-infrastructure.md). |

> [!NOTE]
>
> **Google Cloud: pod range too small.** Before it creates the cluster, Inframan checks that the pod range can hold the system pool and your pools at their maximum size, and fails the cluster step with a clear error if it can't. Retrying won't help, because the range is part of the network. Destroy the infrastructure and create it again with a larger **Pod CIDR** or smaller maximums.

## With an AI assistant

A connected assistant can create an infrastructure with the `provision_infrastructure` tool, using the same fields. It creates billable resources in your account as soon as it runs. You still run the one-time setup script yourself. See [Connect an AI assistant](https://inframan.mintlify.site/get-started/ai-assistants.md).

## Limits

* An instance can have **one infrastructure per cloud**.
* **Production** infrastructures aren't available yet.
* **Zero-trust security** can't be changed after creation.
* On Google Cloud, **application pools** can't be changed after creation. On AWS you can change them at any time.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.