Created
March 16, 2023 18:40
-
-
Save swami87aws/0dcddbddd188d053fc9d9b6f1d984be3 to your computer and use it in GitHub Desktop.
Sample commands for managing third party addons on Amazon Addons
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Using EKSCTL | |
| #Describe Addon Versions | |
| eksctl utils describe-addon-versions --kubernetes-version 1.24 | grep AddonName | |
| #Describe Addon Configuration | |
| eksctl utils describe-addon-versions --kubernetes-version 1.24 --name tetrate-io_istio-distro | grep AddonVersion | |
| #Create Addon | |
| eksctl create addon --cluster ${testcluster} --name tetrate-io_istio-distro --version latest --force | |
| #Describe Addon Status | |
| eksctl get addon --cluster ${testcluster} | |
| #Delete Addon | |
| eksctl delete addon --cluster ${testcluster} --name tetrate-io_istio-distro --preserve | |
| #Update Addon | |
| eksctl update addon -f update-addon.yaml | |
| ## USing AWS CLI | |
| #Describe Addon Versions | |
| aws eks describe-addon-versions --kubernetes-version 1.24 \ | |
| --query 'addons[].{MarketplaceProductUrl: marketplaceInformation.productUrl, Name: addonName, Owner: owner Publisher: publisher, Type: type}' --output table | |
| aws eks describe-addon-versions --kubernetes-version 1.24 --addon-name tetrate-io_istio-distro \ | |
| --query 'addons[].addonVersions[].{Version: addonVersion, Defaultversion: compatibilities[0].defaultVersion}' --output table | |
| #Describe Addon Configuration | |
| aws eks describe-addon-configuration --addon-name tetrate-io_istio-distro --addon-version v1.16.1-eksbuild.0 | |
| #Create Addon | |
| aws eks create-addon --cluster-name ${testcluster} --addon-name tetrate-io_istio-distro --addon-version v1.16.1-eksbuild.0 --resolve-conflicts OVERWRITE | |
| #Describe Addon Status | |
| aws eks list-addons --cluster-name my-cluster | |
| aws eks describe-addon --cluster-name ${testcluster} --addon-name tetrate-io_istio-distro --query "addon.addonVersion" --output text | |
| #Delete Addon | |
| aws eks delete-addon --cluster-name ${testcluster} --addon-name tetrate-io_istio-distro --preserve |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment