# Eks Capi Clusters

This document describe how to create and manage AWS Elastic Kubernetes Service (EKS) Kubernetes clusters in PMK. [Amazon EKS](https://aws.amazon.com/eks/) is AWS's native Kubernetes offering, used by a number of enterprise customers. PMK provides full lifecycle management for your EKS clusters at scale. This enables you to organize and manage your EKS environment using better organization and superior automation.

PMK uses the Kubernetes [Cluster API(CAPI)](https://cluster-api.sigs.k8s.io/) behind the scenes to manage EKS clusters. For more information about the Kubernetes Cluster API project and PMK's integration with Cluster API, please read [auto$](https://github.com/platform9/pcd-docs-gitbook/blob/main/kubernetes/platform9-cluster-api-integration/README.md).

<figure><img src="/files/VeWmUs88ekIHVy2g2dyX" alt=""><figcaption></figcaption></figure>

## Provider Version Matrix

EKS Clusters in PMK are managed by multiple Cluster API providers. More: [auto$](https://github.com/platform9/pcd-docs-gitbook/blob/main/kubernetes/platform9-cluster-api-integration/README.md)

| Provider Type  | Provider                                                                                                                               | Version |
| -------------- | -------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| Core           | [Cluster API(CAPI)](https://github.com/kubernetes-sigs/cluster-api)                                                                    | 1.1.5   |
| Infrastructure | [Cluster API Infrastructure Provider AWS (CAPA)](https://github.com/kubernetes-sigs/cluster-api-provider-aws)                          | 1.4.1   |
| Bootstrap      | [Cluster API Infrastructure Provider AWS (CAPA)](https://github.com/kubernetes-sigs/cluster-api-provider-aws) - AWSManagedControlPlane | 1.4.1   |
| Control Plane  | [Cluster API Infrastructure Provider AWS (CAPA)](https://github.com/kubernetes-sigs/cluster-api-provider-aws) -AWSManagedControlPlane  | 1.4.1   |

## APIs

Here is a list of all the APIs used to create an EKS Cluster.

| CAPI APIs                                                                                                                               | CAPA APIs                                                                                                                                                                          | CACPN APIs                                                                                                                                                                  | CABPN APIs                                                                                                                                                     |
| --------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Cluster](https://github.com/kubernetes-sigs/cluster-api/blob/main/config/crd/bases/cluster.x-k8s.io_clusters.yaml)                     | [AWSCluster](https://github.com/kubernetes-sigs/cluster-api-provider-aws/blob/main/config/crd/bases/infrastructure.cluster.x-k8s.io_awsclusters.yaml)                              | [AWSManagedControlPlane](https://github.com/kubernetes-sigs/cluster-api-provider-aws/blob/main/config/crd/bases/controlplane.cluster.x-k8s.io_awsmanagedcontrolplanes.yaml) | [EKSConfigTemplate](https://github.com/kubernetes-sigs/cluster-api-provider-aws/blob/main/config/crd/bases/bootstrap.cluster.x-k8s.io_eksconfigtemplates.yaml) |
| [MachineDeployment](https://github.com/kubernetes-sigs/cluster-api/blob/main/config/crd/bases/cluster.x-k8s.io_machinedeployments.yaml) | [AWSClusterStaticIdentity](https://github.com/kubernetes-sigs/cluster-api-provider-aws/blob/main/config/crd/bases/infrastructure.cluster.x-k8s.io_awsclusterstaticidentities.yaml) |                                                                                                                                                                             | [EKSConfig](https://github.com/kubernetes-sigs/cluster-api-provider-aws/blob/main/config/crd/bases/bootstrap.cluster.x-k8s.io_eksconfigs.yaml)                 |
| [MachinePool](https://github.com/kubernetes-sigs/cluster-api/blob/main/config/crd/bases/cluster.x-k8s.io_machinepools.yaml)             | [AWSMachineTemplate](https://github.com/kubernetes-sigs/cluster-api-provider-aws/blob/main/config/crd/bases/infrastructure.cluster.x-k8s.io_awsmachinetemplates.yaml)              |                                                                                                                                                                             |                                                                                                                                                                |
|                                                                                                                                         | [AWSMachinePool](https://github.com/kubernetes-sigs/cluster-api-provider-aws/blob/main/config/crd/bases/infrastructure.cluster.x-k8s.io_awsmachinepools.yaml)                      |                                                                                                                                                                             |                                                                                                                                                                |
|                                                                                                                                         | [AWSManagedMachinePool](https://github.com/kubernetes-sigs/cluster-api-provider-aws/blob/main/config/crd/bases/infrastructure.cluster.x-k8s.io_awsmachinepools.yaml)               |                                                                                                                                                                             |                                                                                                                                                                |

## Example Cluster Topology

<figure><img src="/files/ulDlkyQPGDX5xzaeX1Zi" alt=""><figcaption></figcaption></figure>

### References

Cluster API Book : <https://cluster-api.sigs.k8s.io/>

Cluster API AWS Provider Book : <https://cluster-api-aws.sigs.k8s.io/>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.platform9.com/managed-kubernetes/5.9/eks-capi-clusters.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
