astroctl cloud aws generate-karpenter
Generate Karpenter prerequisite CloudFormation for standard EKS
Synopsis
Generate a CloudFormation template that prepares an existing standard EKS cluster for the Karpenter add-on. The template creates the controller and node identities, node access entry, Pod Identity association, interruption queue, and event rules. Review and deploy it in the cluster's AWS account before applying the Karpenter add-on manifest.
Terminal
astroctl cloud aws generate-karpenter [flags]
Examples
Terminal
# Write a reviewable template
astroctl cloud aws generate-karpenter \
--cluster-name production \
--output-file karpenter-cloudformation.yaml
# Deploy it with named-IAM acknowledgement
aws cloudformation deploy \
--template-file karpenter-cloudformation.yaml \
--stack-name Karpenter-production \
--capabilities CAPABILITY_NAMED_IAM
# The cluster already runs the EKS Pod Identity Agent add-on: deploy without
# creating it again, which would fail the stack
aws cloudformation deploy \
--template-file karpenter-cloudformation.yaml \
--stack-name Karpenter-production \
--capabilities CAPABILITY_NAMED_IAM \
--parameter-overrides InstallPodIdentityAgent=false
Options
Terminal
--cluster-name string Existing standard EKS cluster name (required)
-h, --help help for generate-karpenter
--output-file string Output file path (prints to stdout if omitted)
Options inherited from parent commands
Terminal
-o, --output string Output format (table|json|yaml) (default "table")
SEE ALSO
- astroctl cloud aws - AWS cloud operations