-
Notifications
You must be signed in to change notification settings - Fork 275
Description
First of all, thanks for this project! It's a must for anyone running Kubernetes on AWS with Spot instances!
Now, I use Kiam to handle AWS IAM credentials in the cluster, and as part of its operation it redirects/blocks access to the metadata endpoint on all nodes. It does have the ability to pass through a specified list of endpoints/paths. So what I need to know is the exact list of endpoints/paths that the NTH uses to make sure I add them to the Kiam access list. I can see some endpoints in the code but am hoping for a definite list from a maintainer.
I can see these constants in https://github.com/aws/aws-node-termination-handler/blob/master/pkg/ec2metadata/ec2metadata.go#L29 being used.
http://169.254.169.254/latest/meta-data/spot/instance-action
http://169.254.169.254/latest/meta-data/events/maintenance/scheduled
http://169.254.169.254/latest/meta-data/instance-id
http://169.254.169.254/latest/meta-data/instance-type
http://169.254.169.254/latest/meta-data/public-hostname
http://169.254.169.254/latest/meta-data/public-ipv4
http://169.254.169.254/latest/meta-data/local-hostname
http://169.254.169.254/latest/meta-data/local-ipv4
If someone can verify this list I will try to add it to the documentation, including how to add pass-through in Kiam (it's a fairly popular solution for AWS IAM).
Thanks!