Open kyrylyuk-andriy opened 1 month ago
We experienced the same as yourself and ultimately had to change our nodeclass back to
metadataOptions:
httpEndpoint: enabled
httpProtocolIPv6: disabled
httpPutResponseHopLimit: 5
httpTokens: optional
To get things working again. Security team doesn't like it so if you found a way to actually use v2 please do shout!
hello kube2iam community, we recently migrated our workloads to ec2 instances managed by Karpenter NodePool, in ec2nodeclass (launch template) IMDSv2 is enabled by default and we see 401 response codes in kube2iam log output. Several examples
level=info msg="GET /latest/meta-data/hostname (401) level=info msg="GET /latest/dynamic/instance-identity/document/ (401)
but interesting thing that in the same time i see also 200 responses, for example
level=info msg="GET /latest/meta-data/instance-id (200)
manually modifying EC2 instance in AWS console instance metadata options and disabling IMDSv2 resolves issue so seems like related to IMDSv2.
Any specific recommendations how to setup kube2iam daemonset to compatible with IMDSv2 ? thank you.