-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add metadata-options
to AWS node driver templates
#25078
Comments
So to work around this limitation, I wrote a cronjob to turn on IMDSv2 in the background as Rancher creates new EC2 nodes. Once the cronjob was implemented, we started seeing high percentage of kubelet failure. It turns out that kubelet failed to talk to IMDSv2 to resolve AZ information on startup. Digging a bit deeper, I found out that aws-sdk-go 1.25.38 added support for imdsv2. Based on the godep information, that means only K8s 1.18+ supports IMDSv2. To workaround this, I would only turn on IMDSv2 after kubelet is up and the node joins the K8s cluster. |
Should be able to add |
Verified on master-head commit id:
Upgrade from
|
What kind of request is this (question/bug/enhancement/feature request): Enhancement
Steps to reproduce (least amount of steps as possible): In order to enable
IMDSv2
on AWS instances, you must start them using an option likespecifically the
--metadata-options
. We should be able to set a value for--metadata-options
when provisioning instances using the Rancher Machine AWS EC2 driver.Result: N/A
The current version of Rancher at the time of filing this request is v2.3.4
The text was updated successfully, but these errors were encountered: