---
updatedAt: 2026-09-02T01:38:47.000Z
agentTools:
  projectIndex: https://docs.catio.tech/llms.txt
---

# Kubernetes Integration

What the Kubernetes integration contributes, and what you need to connect it.

## What this contributes

Kubernetes adds the compute workloads running on top of your infrastructure: services, deployments, and where they actually run, rather than where a diagram says they run.

AWS tells Catio what capacity exists. Kubernetes tells it what is using that capacity. Without it, a cluster appears as infrastructure with nothing on it, and blueprints about scaling, placement, or consolidation have no workload to reason about.

## Setting it up

The wizard has four steps: select the integration, grant Catio access to the cluster, provide the kubeconfig, then review and name it.

### 1. Select Kubernetes

<Image src="https://files.readme.io/157d63a30e316dbb78e543c51c006f5f18606f9e4fca0abb18530cc078208a9c-k8s-01-select-integration.png" align="center" />

Connect the [AWS integration](https://docs.catio.tech/docs/aws-integration) first. On EKS the cluster access model reuses the IAM role that integration creates, and the workloads Kubernetes reports need the underlying infrastructure to attach to.

### 2. Read what the extractor collects

<Image src="https://files.readme.io/952d7ffad7cdbda6790274ed7c0364cb0d1816e60f6c79066ae146ebb5f00fe9-k8s-02-overview.png" align="center" />

It extracts pods, deployments, and services from the cluster. This is the workload layer: what is actually running, as opposed to the capacity AWS reports as available.

### 3. Grant Catio access to the cluster (EKS)

On EKS, IAM alone is not enough. Cluster authorization is a separate system, so an IAM role that can *describe* the cluster still cannot *read inside* it until the cluster maps that role to a Kubernetes identity.

That mapping lives in the `aws-auth` ConfigMap in `kube-system`:

```bash
kubectl get configmap aws-auth -n kube-system -o yaml > aws-auth.yaml
```

Add an entry to `mapRoles` for the role the AWS integration created, replacing `<accountId>` with your AWS account ID:

```yaml
- "groups":
  - "system:masters"
  "rolearn": "arn:aws:iam::<accountId>:role/CatioConsoleAccessRole"
  "username": "CatioConsoleAccessRole"
```

Then apply and confirm:

```bash
kubectl apply -f aws-auth.yaml
kubectl describe configmap aws-auth -n kube-system
```

The new role should appear in the output. Note that the group you bind determines what Catio can do inside the cluster, and `system:masters` is a broad binding — review it against your own cluster RBAC policy before applying, and bind a narrower read-only group if your policy requires it.

Editing `aws-auth` incorrectly can lock users out of the cluster, so take the backup the first command produces and keep it until you have verified access.

### 4. Provide the kubeconfig

Paste the cluster's kubeconfig as JSON. It carries the API server endpoint, the certificate authority data, the context, and the exec-based authentication block — together these are what let the extractor reach the cluster the ConfigMap just authorized it for.

The field validates on submit. If it reports invalid input, the usual causes are leaving the placeholder comment in place or pasting YAML rather than JSON.

### 5. Review and name the integration

If you run more than one cluster, name each integration after the cluster rather than accepting the default, since the name is what identifies it when subscribing to a [workspace](https://docs.catio.tech/docs/what-is-a-subscription). Each cluster is its own integration.

## Done when

A [run](https://docs.catio.tech/docs/run-an-integration) completes and workloads appear in the [Architecture Inventory](https://docs.catio.tech/docs/architecture-inventory) attached to the infrastructure they run on. If the cluster resolves but returns nothing, the `aws-auth` mapping is the first thing to check. See [Integration Troubleshooting](https://docs.catio.tech/docs/integration-troubleshooting).