jtblin / kube2iam

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

kube2iam crashes after endpoint connection refused. #254

Open Magicloud opened 4 years ago

Magicloud commented 4 years ago

I have 5 pods of kube2iam running. Two of them crash frequently, like once 2 or 3 days.

I turned on the verbose output, and see this error before crashing. Wondering if kube2iam can avoid the crashing even it is an AWS issue.

level=error msg="Error getting instance id Get http://169.254.169.254/latest/meta-data/instance-id: dial tcp 169.254.169.254:80: connect: connection refused"