EKS Cluster

How to Optimize AWS Managed Kubernetes Clusters (EKS)

1. Download Kaytu CLI

MacOS

brew tap kaytu-io/cli-tap && brew install kaytu

Linux

curl -fsSL https://raw.githubusercontent.com/kaytu-io/kaytu/main/scripts/install.sh | sh

Windows (and all Binaries) Download Windows (Linux, and MacOS) binary from releases

2. Login to kaytu CLI

kaytu login

Install the Kaytu CLI plugin

kaytu plugin install kubernetes

3. Login to AWS CLI

If you don't have AWS CLI, go here and install it.

Run to confirm you are logged in to the correct account

aws sts get-caller-identity

4. Authenticate to Kubernetes Cluster

Replace my-cluster with the cluster name and region code.

Run

to confirm you are connected to the cluster

5. Install Kubernetes Agent

5a. Generate Enrollment Keys

Enrollment keys allow the Kubernetes cluster to get optimization results from the Kaytu platform.

Replace Cluster name with the Kubernetes Cluster.

Please copy the enrollment key provided. Unfortunately, you won't be able to view the key at a later time.

5b. Add Helm Repo

Once that completes, we can run update Charts:

5c. Populate the values.yaml

In values.yaml file, please make sure the following variables are correctly configured:

kaytu.kaytu.authToken needs to be populated with the key generated in Step 4.

kaytu.kaytu.prometheus.address needs to be pointed to the Prometheus endpoint.

5d. Install the Chart

This will create a namespace if one doesn't exist for Kaytu

5e. Wait for optimization

Check the logs and wait for the optimization cycle to be over

Wait for the log containing the optimization cycle to be completed.

6. Run optimization Checks