Skip to content

feat(nodeadm): support public ecr authenticated ipv6 pulls#2593

Merged
mselim00 merged 1 commit intoawslabs:mainfrom
mselim00:public-dualstack
Mar 13, 2026
Merged

feat(nodeadm): support public ecr authenticated ipv6 pulls#2593
mselim00 merged 1 commit intoawslabs:mainfrom
mselim00:public-dualstack

Conversation

@mselim00
Copy link
Contributor

@mselim00 mselim00 commented Jan 16, 2026

Issue #, if available:
Resolves #2592

Description of changes:
Adds the dualstack endpoint for public ECR per https://docs.aws.amazon.com/AmazonECR/latest/public/public-ecr-requests.html.

This will support authenticated image pulls for Ipv6 nodes from public ECR. This is not strictly necessary, but it increases pull allowances to reduce throttling, as detailed in https://docs.aws.amazon.com/AmazonECR/latest/public/public-service-quotas.html.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Testing Done

See this guide for recommended testing for PRs. Some tests may not apply. Completing tests and providing additional validation steps are not required, but it is recommended and may reduce review time and time to merge.

@mselim00 mselim00 marked this pull request as draft January 16, 2026 23:52
@mselim00
Copy link
Contributor Author

flipped to draft, it doesn't seem like the ecr cred provider currently supports dualstack for ipv6 for the public registry, the host is hardcoded to the ipv4 one https://github.com/kubernetes/cloud-provider-aws/blob/742c08cb45041fa4650199179947714ad21b49b8/cmd/ecr-credential-provider/main.go#L44

@mselim00
Copy link
Contributor Author

working on adding that support in the cred provider then we can do this:
kubernetes/cloud-provider-aws#1332

@mselim00 mselim00 force-pushed the public-dualstack branch 2 times, most recently from f9ee86c to c00097b Compare February 26, 2026 18:43
@mselim00
Copy link
Contributor Author

gosec failure is unrelated: #2640

@mselim00 mselim00 marked this pull request as ready for review February 26, 2026 19:18
@mselim00 mselim00 requested a review from fletcherw February 27, 2026 20:48
"public.ecr.aws",
}
if semver.Compare(kubeletVersion, "v1.36.0") >= 0 {
// currently only v1.36.0+ of ecr-credential-provider supports this
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused by this line -- is ecr-credential-provider versioning locked to kubernetes versions? Can you backport your change to the earlier release branches of ecr provider?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah ecr credential provider is Kubernetes versioned, it needs to handle kubelet’s credential request/response schema and is bundled w/ cloud provider aws atm.

I’ll check on back porting the change

@mselim00 mselim00 merged commit 76ba007 into awslabs:main Mar 13, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(al2023): CredentialProviderConfig doesn't include dualstack endpoints

2 participants