aws / karpenter-provider-aws

Karpenter is a Kubernetes Node Autoscaler built for flexibility, performance, and simplicity.
https://karpenter.sh
Apache License 2.0
6.59k stars 915 forks source link

Getting started section is inaccurate #6619

Closed willredington closed 1 month ago

willredington commented 1 month ago

Description

https://karpenter.sh/docs/getting-started/getting-started-with-karpenter/

Karpenter supports only 1.29 of kubernetes in the docs its specifying 1.30

These values return not found in both us-east-1 and us-east-2:

export ARM_AMI_ID="$(aws ssm get-parameter --name /aws/service/eks/optimized-ami/${K8S_VERSION}/amazon-linux-2-arm64/recommended/image_id --query Parameter.Value --output text)"
export AMD_AMI_ID="$(aws ssm get-parameter --name /aws/service/eks/optimized-ami/${K8S_VERSION}/amazon-linux-2/recommended/image_id --query Parameter.Value --output text)"
export GPU_AMI_ID="$(aws ssm get-parameter --name /aws/service/eks/optimized-ami/${K8S_VERSION}/amazon-linux-2-gpu/recommended/image_id --query Parameter.Value --output text)"
njtran commented 1 month ago

We support 1.30. These all work for me for 1.30. Here's an example of one of the commands I used

aws ssm get-parameter --name /aws/service/eks/optimized-ami/1.30/amazon-linux-2-gpu/recommended/image_id --query Parameter.Value --output text --region us-east-2
willredington commented 1 month ago

I am seeing ParameterNotFound for all of them in us-east-2 both on the CLI and in the console

aaroniscode commented 1 month ago

@willredington I can confirm running the command @njtran shared above and it's working for me. I've used Karpenter with EKS 1.30.

Can you try running the command in AWS CloudShell to rule out any issue with your AWS CLI command? If it's working there, that might help you root cause why it's not working in the other environment.

willredington commented 1 month ago

Got it working thanks