jtblin / kube2iam

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

Add Pod lifecycle to remove redirect iptables rule #290

Open brunopaiuca opened 3 years ago

brunopaiuca commented 3 years ago

Implement Pod lifecycle to remove redirect iptables rules to avoid traffic be redirected to one port service that is not working anymore.

It is implemented using Pod Lifecycle preStop to remove the rule when the kube2iam DaemonSet is deleted or the pod die somehow.

coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 19.481% when pulling f21e1c8f4e0b7813eff9e8ca23ad8d9a90c2f18d on brunopaiuca:implement-graceful-iptables-rule-removal into a1b6aa31bfe9c8d18fa2c90ba251db0085ad64ab on jtblin:master.

jtblin commented 3 years ago

cc @mariusv @walkafwalka can you help reviewing helm charts changes pls?