jtblin / kube2iam

kube2iam provides different AWS IAM roles for pods running on Kubernetes
BSD 3-Clause "New" or "Revised" License
1.99k stars 319 forks source link

imdsv2 failing for kube2iam deployed on azure aks to assume aws iam role. #353

Open iamamitgera opened 2 years ago

iamamitgera commented 2 years ago

Deployed Kube2iam on Azure to assume aws iam role while its working fine for imdsv1 call but only failing for imdsv2 calls.

cmd: curl -isS -X PUT http://169.254.169.254/latest/api/t"X-aws-ec2-metadata-token-ttl-seconds: 21600" output: HTTP/1.1 400 Bad Request Content-Length: 322 Content-Type: text/xml; charset=utf-8 Date: Wed, 02 Nov 2022 18:39:15 GMT Server: Microsoft-IIS/10.0

<?xml version="1.0" encoding="utf-8"?>

InvalidHttpVerb The HTTP verb specified was not recognized by the server.
'PUT' is not a supported verb.