aws / karpenter-provider-aws

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

v0.32.7 Failing MetadataOptions for IPv6 in ISO regions #7081

Open jlplasce opened 1 month ago

jlplasce commented 1 month ago

Description

Observed Behavior: When using Chart/App version 0.32.7 of Karpenter in ISO AWS regions , the metadataOptions on NodePools is resulting in an error of: NodeClaim creating instance with errors: UnsupportedOperation specifying HttpProtocol Metadata Options for an instnace is not support in this region

We typically provide metadataOptions as

{
    http_endpoint = "enabled"
    http_tokens  = "optional"
    httpProtocolIPv6 = "disabled"
    http_put_response_hop_limit = 2         
    instance_metadata_tags  = "disabled"
}  

AWS Communication AWS Support verified that IPv6 Metadata is disabled by default in one ISO region, but is not yet a property available in other regions, and therefor, even setting the property to "disabled" or "false" will result in errors as the endpoint/properties do not exist

Attempted Troubleshooting The following attempted changes were made but none were successful:

Workaround Reverting all the way back to v0.18.1 works successfully

Versions:

jigisha620 commented 1 month ago

Can you please share your nodePool spec? I would also recommend updating to v0.33 and above as with the release of Karpenter v1.0, we have dropped support for karpenter versions v0.32 and below.

go0ty commented 3 days ago

I am having the same issue with v0.33 and v0.36. In these ISO regions, any specification of the MetadataOptions will cause a failure, as these properties are not available. Is there any way to omit the specification of these properties when the software makes the RunInstances call?