Skip to content

Get a list of addons available for eks

1

How to get a list of all the eks addons available. https://docs.aws.amazon.com/eks/latest/APIReference/API_ListAddons.html

I checked this doc but now able to find how to execute this api.

asked 3 years ago4.8K views

2 Answers
0

In this URL https://docs.aws.amazon.com/eks/latest/APIReference/API_ListAddons.html you have to click to download the pdf file which is about 458 pages. To retrieve a list of all available Amazon EKS add-ons using the ListAddons API, you can follow these general steps:

Make sure you have AWS credentials configured with the necessary permissions to call the Amazon EKS API. You can set up credentiDecide which AWS SDK (e.g., Python, Java, JavaScript) or AWS CLI you want to use to interact with the Amazon EKS API. Each SDK and the CLI provides methods or commands to call AWS APIs.

Use the chosen AWS SDK or AWS CLI to call the ListAddons API. Provide any required parameters, such as the name of the EKS cluster for which you want to list add-ons.

Once you make the API call, handle the response returned by the ListAddons operation. The response will contain information about the available EKS add-ons for the specified cluster.

Here's an example of how you might use the AWS CLI to call the ListAddons API:

aws eks list-addons --cluster-name <cluster-name>

Replace <cluster-name> with the name of your Amazon EKS cluster.

And here's an example of how you might use the AWS SDK for Python (Boto3) to achieve the same:

# Create an EKS client
eks_client = boto3.client('eks')

# Call the ListAddons operation
response = eks_client.list_addons(clusterName='<cluster-name>')

# Process the response
addons = response['addons']
for addon in addons:
    print(addon)

Replace <cluster-name> with the name of your Amazon EKS cluster.

EXPERT

answered 3 years ago

EXPERT

reviewed 3 years ago

  • I want to find all the available addons for eks cluster. Not the addons installed in my cluster.

    Find all the avaialble addons so that I can install But looking to get a list.

0

To see official IaC names of all eks add-ons:

export KUBE_VERSION=1.31
aws eks describe-addon-versions  \
--kubernetes-version=$KUBE_VERSION \
--query 'sort_by(addons  &owner)[].{owner: owner, addonName: addonName}' \
--output table

Example of how to Query for the Latest Version of an add-on:

aws eks describe-addon-versions --kubernetes-version=$KUBE_VERSION \
--addon-name=vpc-cni \
--query='addons[].addonVersions[].addonVersion' | jq '.[0]'

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.