Skip to main content
Skip table of contents

EKS - Amazon Elastic Kubernetes service onboarding

Mavvrik supports two ways to connect an EKS cluster, as shown in the Connect EKS Cluster screen:

  • Allocation-Based – recommended when you want quick onboarding and cost allocation visibility without deep cluster telemetry.

  • Appliance-Based – recommended when you need deeper telemetry and more detailed Kubernetes insights.

Steps to onboard the EKS cluster(Appliance based)

Before onboarding your EKS account, you must have the admin rights on the cluster that you want to onboard and follow the steps below

Step 1: Enable Cost Allocation Tags

  1. Access the AWS Portal, then search for and select Billing and Cost Management.

    image-20241210-055824.png

  2. Navigate to Cost Allocation Tags and select AWS-generated cost allocation tags.

    image-20241210-060354.png
  3. Search aws:eks:cluster-name & aws:autoscaling:groupName and enable the tag.

    image-20241218-103731.png

Ref link: https://us-east-1.console.aws.amazon.com/costmanagement/home?region=us-east-1#/tags

Step-2: Install Kubectl and Helm.

  1. Login to AWS console where EKS clusters are created

  2. Click on Cloud Shell on top right corner

  3. Select the cluster you wanna onboard by running the command below. Replace 'your-cluster-name' with the name of the specific cluster you want to onboard.

    CODE
    aws eks update-kubeconfig --region us-east-1 --name dx-enteryourclustername
  4. If kubctl and helm are installed then skip the below steps and perform https://help.mavvrik.ai/content/eks-amazon-elastic-kubernetes-service-onboarding#EKS-AmazonElasticKubernetesserviceonboarding-Step-3:StepstoperforminMavvrik

    1. Steps to install kubectl

      CODE
      #macOS
      brew install kubectl
      
      #Windows
      winget install Kubernetes.kubectl
      
      #Linux
      curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
      chmod +x kubectl
      sudo mv kubectl /usr/local/bin/
    2. Steps to install helm

      CODE
      brew install helm   # macOS
      winget install Helm.Helm  # Windows

Step-3 : Steps to perform in Mavvrik

  1. Go to the Menu

  2. Click on Admin → Kubernetes

    image-20240919-113310.png
  3. Click on the EKS tab

  4. Click on Connect > Appliance based

  5. Enter your Prometheus URL

Steps to get Prometheus URL

  1. Capture the Prometheus URL associated with the K8s cluster:

a. Enter the following URL in Mavvrik UI

CODE
http://<prometheus-server-name>.<namespace>:<prometheus-internal-port>

b. To find the Prometheus service, run the following command in Kubernetes shell

CODE
kubectl get svc -n prometheus
image-20240606-090502.png
  1. In URL Replace prometheus-server-name,namespace & prometheus-internal-port with your data

  2. The following screenshot shows an example of a URL

    image-20240606-085030.png


image-20260129-054427.png
  1. Copy the mavvrik UI Step-4 Kubernetes Shell command and run it in aws console cloudshell

image-20241107-100746.png
  1. After executing the command the Kubernetes appliance will be installed.

  2. Click on the Connect button in Mavvrik.

Instructions to Enable Resource Requests split cost allocation in Cost & Usage Reports (Allocation based)

  1. Steps to enable AWS Cost Allocation Tags:

    1. Access the AWS Portal, then search for and select Billing and Cost Management.

      image-20241210-055824.png

    2. Navigate to Cost Allocation Tags .

      image-20260226-131610.png
    3. Click select all chechbox

      image-20260226-131717.png
    4. Then click on Active button

      image-20260226-132240.png

  1. To opt in to split cost allocation data

    1. Open the Billing and Cost Management console at the main billing account level

    2. In the navigation pane, choose Cost Management preferences in the left side panel.

image-20260107-123305.png

c. Under General, in the Split cost allocation data section, choose between the following:

Amazon Elastic Kubernetes Service (Amazon EKS) to opt in to Amazon EKS only. For Amazon EKS, choose between the following:

Resource requests: This allocates your Amazon EC2 by Kubernetes pod CPU and memory resources only. This will encourage application teams to only provision what they need.

image-20260107-123623.png
  1. Include cost and usage data in your report

    1. Open the Billing and Cost Management console at https://console.aws.amazon.com/costmanagement/.

    2. In the navigation pane, under Legacy Pages, choose Cost and Usage Reports.

    3. Edit an existing report created while onboarding AWS, in the Specify report details page, under Report content, select Split cost allocation data.

image-20260129-035913.png
  1. Navigate to Mavvrik portal > Admin > K8s and connect the Allocation based cluster

image-20260129-054231.png

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.