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

# Use an existing EKS cluster

> Install e6data into an EKS cluster you already run, and share that cluster safely with other teams' workloads.

How-to guideApplies to: CloudPrem on AWS

You can install e6data into an EKS cluster you already run. Check the list below first, then follow the standard install and skip the steps that create the network and cluster.

## Requirements

* A Kubernetes version in the supported range ([Component versions and operations](https://docs.e6data.com/platform/deploy/aws-cloudprem/component-versions-and-operations.md)).
* OIDC issuer and workload identity turned on. If either is off, the install fails without a clear error. Check these first.
* Outbound access to the hostnames in [Hostnames and ports](https://docs.e6data.com/platform/deploy/aws-cloudprem/hostnames-and-ports.md).
* Enough free IPs in your subnets ([IP address sizing](https://docs.e6data.com/platform/deploy/aws-cloudprem/ip-address-sizing.md)) and enough vCPU quota ([Sizing and cost](https://docs.e6data.com/platform/deploy/aws-cloudprem/sizing-and-cost.md)).
* Agreement on reusing cert-manager or a node scaler if your cluster already runs one.

## Checklist: existing EKS cluster

| Item | Expected | If not met |
| - | - | - |
| Kubernetes version | 1.29 to 1.35. Check AWS's EKS release calendar: older versions are in extended support and cost more | Upgrade the cluster |
| OIDC issuer | Present in `aws eks describe-cluster` | `eksctl utils associate-iam-oidc-provider --cluster <cluster> --approve` |
| EKS Pod Identity Agent add-on | Installed (or use IRSA) | Install the add-on |
| VPC CNI | Installed. Prefix delegation is optional (e6data's own installs run without it) | Install the VPC CNI add-on |
| EBS CSI driver add-on | Installed, with its role | Install it and create the role ([Permissions reference](https://docs.e6data.com/platform/deploy/aws-cloudprem/permissions-reference.md)) |
| Subnet tags | `kubernetes.io/role/internal-elb = 1` on private subnets; `karpenter.sh/discovery = <cluster>` for Karpenter. With subnets shared from another account (AWS RAM), add the tags in the workload account | Add the tags |
| Node scaling | Karpenter (e6data's or upstream). With e6data's Karpenter, also an SQS interruption queue fed by 4 EventBridge rules (Spot interruption, rebalance recommendation, instance state change, AWS Health), and its 2 extra CRDs | See [Node provisioning](https://docs.e6data.com/platform/deploy/aws-cloudprem/node-provisioning.md) |
| System node group | An EKS managed node group, untainted. e6data's install uses 2 x t3.medium on most clusters (some use 2 to 4 x t4g.large). The operator (2 replicas), cert-manager, KEDA and VPA are pinned to the managed node group by default. If you only have self-managed nodes, set their `nodeSelector` and tolerations | Add a managed node group, or override the placement |
| Admission webhook port | TCP 9443 allowed from the EKS control-plane network interfaces (cluster security group) to the operator pods | Allow it |
| Host ports 4317 and 4318 | Free on every node. The cluster log and metrics collector (on by default in e6data's install) runs on every node, including your own | Free the ports, or turn cluster monitoring off |
| Roles you create | Node role, Karpenter role, load balancer controller role (if e6data creates the load balancer), EBS CSI role, workspace roles | See [Permissions reference](https://docs.e6data.com/platform/deploy/aws-cloudprem/permissions-reference.md) |
| Node access | Node role has an access entry (`EC2_LINUX`) or `aws-auth` mapping | Add it |
| cert-manager, Karpenter, Load Balancer Controller | Not installed, or agreed to reuse | `kubectl get pods -A \| grep -iE 'cert-manager\|karpenter\|load-balancer'` |

## Choices made at cluster creation

> [!WARNING]
>
> Some of these can't be changed on an existing cluster. If a fixed one doesn't match, you need a new cluster.

| Choice | AWS |
| - | - |
| Network plugin and pod IP mode | The VPC and the IP family (IPv4 or IPv6) are fixed at creation. Subnets, security groups and API endpoint access can be changed later |
| Service CIDR | Fixed at creation |
| Disk encryption with your key on node disks | Set per node group or Karpenter NodeClass |
| Private API server | Can be switched (`endpointPublicAccess=false`, `endpointPrivateAccess=true`) |
| Authentication mode | Switching to access entries only (`API`) is one-way |

## Steps

1. Run the checks in Preflight check below and fix any failure.
2. Agree with e6data on the node scaler and whether to reuse cert-manager.
3. Follow the standard install ([Configure registry, VPC, EKS, and networking](https://docs.e6data.com/platform/deploy/aws-cloudprem/configure-registry-vpc-eks-networking.md), then [Deploy workspace and e6data](https://docs.e6data.com/platform/deploy/aws-cloudprem/deploy-workspace.md), or [Install with your own tooling](https://docs.e6data.com/platform/deploy/aws-cloudprem/install-with-your-own-tooling.md)), choosing the **Use an existing EKS cluster** tab in Part 1, and skip:
   * creating the VPC, subnets and NAT;
   * creating the EKS cluster and its system node pool;
   * the Karpenter install if you reuse your own Karpenter ([Node provisioning](https://docs.e6data.com/platform/deploy/aws-cloudprem/node-provisioning.md));
   * cert-manager if you reuse yours.
4. Create the roles or identities from [Permissions reference](https://docs.e6data.com/platform/deploy/aws-cloudprem/permissions-reference.md) (or have your identity team create them).

## Preflight check

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
aws eks describe-cluster --name <cluster> \
  --query 'cluster.{version:version,oidc:identity.oidc.issuer,auth:accessConfig.authenticationMode}'
aws eks list-addons --cluster-name <cluster>
```

Expected: version in range, OIDC issuer present, workload identity on, required add-ons listed.

## Verify

1. All workspace pods are `Running`: `kubectl get pods -n <WORKSPACE_NAME> -o wide`.
2. Resume a cluster from the e6data console. It reaches **Running**.
3. Run a query and check it appears in **Query History**.

## Troubleshooting

| Symptom | Cause | Fix |
| - | - | - |
| Workspace pods can't read cloud storage | Pod Identity agent or association missing | Add it, then restart the pods |
| Two cert-manager installs conflict | Existing cert-manager not reused | Remove the second install and reuse yours |
| e6data pods `Pending` | No node pool or NodePool matches the e6data taints and labels | See [Node provisioning](https://docs.e6data.com/platform/deploy/aws-cloudprem/node-provisioning.md) |
| Resume, suspend or catalog changes fail with a webhook timeout after 10 s | The EKS control plane can't reach the operator's webhook on TCP 9443 | Allow TCP 9443 from the cluster security group to the operator pods |

## Share the cluster with other teams

Other teams can run workloads in the same EKS cluster. e6data keeps its engines on its own tainted nodes and its pods in its own namespaces. Your cluster-wide security agents, quotas, policy engines and network policies work alongside it, with the settings below.

### Requirements for a shared cluster

* e6data runs in its own namespaces: `e6operator` and one namespace per workspace.
* e6data engine nodes carry a taint (`workspace-name=<ws>:NoSchedule`, or the taint you set on your own node group). Your workloads don't land there unless they tolerate it.
* Workspace platform nodes carry a different taint, `e6data-node-type=platform:NoSchedule`.
* Your DaemonSets that must run on every node (security agents, log shippers) must tolerate both e6data taint keys, or all taints.
* Your cluster-wide admission policies must admit e6data pods ([Pod security](https://docs.e6data.com/platform/deploy/aws-cloudprem/pod-security.md)).

### What is supported

| Shared-cluster need | Supported? | What you do |
| - | - | - |
| Your workloads in other namespaces | Yes | Nothing |
| Keep your workloads off e6data nodes | Yes | Nothing; the taint does it |
| Your security agent DaemonSet on e6data nodes | Yes | Tolerate the e6data taint (or all taints). Add the agent's requests to node sizing |
| ResourceQuota and LimitRange on e6data namespaces | Yes | Size the quota for every cluster you run at once, plus one extra executor set during updates. LimitRange `max` must be at least the executor's size ([Sizing and cost](https://docs.e6data.com/platform/deploy/aws-cloudprem/sizing-and-cost.md)) |
| Service mesh (Istio, mesh-wide STRICT mTLS) | Yes, with e6data namespaces excluded from the mesh | Exclude the e6data namespaces. Meshing the workspace namespace is refused by Pod Security `restricted` |
| Policy that every workload has a PodDisruptionBudget | Gap today: add your own PDBs for the metadata services, planner, queue and executors | e6data ships PDBs for the operator, Envoy and xDS. Add your own for the others; the operator keeps them |
| No cluster-admin for e6data's operator | Yes, with a caveat | The operator has its own ClusterRole, not cluster-admin, but in the default mode it can create workloads and read and write Secrets in every namespace ([Kubernetes permissions](https://docs.e6data.com/platform/deploy/aws-cloudprem/kubernetes-permissions.md)) |
| Operator limited to e6data namespaces | Not supported today | See [Kubernetes permissions](https://docs.e6data.com/platform/deploy/aws-cloudprem/kubernetes-permissions.md) |
| Separate workspaces per business unit | Yes, with separate storage | Each workspace has its own roles. Give each its own metadata bucket |
| GitOps tools managing e6data-created objects | Partly | The operator owns the objects it creates and reverts direct changes (a replica change was reverted in about 7 seconds). Additive labels are kept. Don't let your GitOps tool prune e6data namespaces |

### Things that affect other teams

* The e6data operator's default mode has namespaced rights (including Secrets) in every namespace. A mode limited to e6data namespaces is not supported today ([Kubernetes permissions](https://docs.e6data.com/platform/deploy/aws-cloudprem/kubernetes-permissions.md)).
* Each workspace's console ClusterRole can create and delete warm pools in any namespace.
* The cluster log and metrics collector (`otelcol-unified` in `e6operator`, on by default in e6data's install) runs on every node in the cluster, including your own nodes, with the operator's service account, and needs host ports 4317 and 4318 free. If that doesn't suit you, turn cluster monitoring off.
* e6data adds cluster-wide objects: CRDs, admission webhooks, PriorityClasses and ClusterRoles ([Architecture](https://docs.e6data.com/platform/deploy/aws-cloudprem/architecture.md)).
* The e6data admission webhook listens on port 9443. If a security group or network policy blocks the API server from reaching it, every e6data resource update fails after 10 seconds; your other workloads are not affected.
* Agents on e6data nodes take capacity from executors. On a node sized exactly for one executor, a large agent can leave the executor `Pending`.

### Steps to share the cluster

1. Give e6data its namespaces: `kubectl create namespace e6operator` and `kubectl create namespace <WORKSPACE_NAME>`.

2. Add a toleration for the e6data taints to your node-wide DaemonSets:

   ```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
   tolerations:
     - key: workspace-name          # or the taint on your own e6data node group
       operator: Exists
       effect: NoSchedule
     - key: e6data-node-type        # workspace platform nodes
       operator: Exists
       effect: NoSchedule
   ```

3. If you use ResourceQuota, size it from [Sizing and cost](https://docs.e6data.com/platform/deploy/aws-cloudprem/sizing-and-cost.md).

4. If you run a mesh, exclude `e6operator` and the workspace namespaces.

5. If you run default-deny network policies, apply e6data's allow-list. It covers DNS, traffic inside a workspace, the operator, the Kubernetes API, webhooks (9443 for the operator), and the query endpoint. Hostnames and ports are in [Hostnames and ports](https://docs.e6data.com/platform/deploy/aws-cloudprem/hostnames-and-ports.md).

6. Run a server-side dry run of e6data pod specs against your policies before go-live ([Pod security](https://docs.e6data.com/platform/deploy/aws-cloudprem/pod-security.md)).

### Preflight check for a shared cluster

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
kubectl get ds -A -o custom-columns=NS:.metadata.namespace,NAME:.metadata.name,TOL:.spec.template.spec.tolerations
kubectl get resourcequota,limitrange -n <WORKSPACE_NAME>
kubectl get networkpolicy -A; kubectl get ciliumnetworkpolicy -A 2>/dev/null
```

Check each node-wide DaemonSet tolerates the e6data taints, and quotas fit the sizes in [Sizing and cost](https://docs.e6data.com/platform/deploy/aws-cloudprem/sizing-and-cost.md).

### Verify a shared cluster

1. Your agents run on e6data nodes: `kubectl get pods -A -o wide --field-selector spec.nodeName=<e6data-node>`.
2. Resume a cluster from the e6data console. It reaches **Running**.
3. Run a query and check it appears in **Query History**.

### Troubleshooting a shared cluster

| Symptom | Cause | Fix |
| - | - | - |
| Executor `Pending` after adding an agent | Agent requests leave too little room | Lower the agent's requests or use larger engine machines |
| Your agent missing on engine nodes | It doesn't tolerate the e6data taint | Add the toleration |
| Resume rejected with a quota error | ResourceQuota too small for clusters plus the update copy | Raise the quota |
| Every e6data change fails after 10 seconds with `failed calling webhook` | API server can't reach the operator on 9443 | Allow 9443 from the control plane to the operator pods |
| Endpoint unreachable inside a mesh | Workspace namespace meshed in STRICT mode | Exclude the e6data namespaces from the mesh |

### Limitations

* Operator limited to e6data namespaces: Not supported today.
* Warm pools with an operator limited to e6data namespaces: Not supported.
* Network policies: open-source Cilium works. Other network policy products are not covered here; ask e6data.
* Putting e6data namespaces inside a service mesh: Not supported today.

## See also

* [Component versions and operations](https://docs.e6data.com/platform/deploy/aws-cloudprem/component-versions-and-operations.md) - supported versions and add-ons.
* [Node provisioning](https://docs.e6data.com/platform/deploy/aws-cloudprem/node-provisioning.md) - Karpenter and node pools.
* [Kubernetes permissions](https://docs.e6data.com/platform/deploy/aws-cloudprem/kubernetes-permissions.md) - the operator's RBAC.
* [Pod security](https://docs.e6data.com/platform/deploy/aws-cloudprem/pod-security.md) - admission policies.


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