-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make backoff MaxInterval and MaxElapsedTime configurable #33
Conversation
This makes the max interval and max elapsed time configurabel for the exponential backoff used when getting a role based on source IP. The defaults are still the same e.g. 1 minute for MaxInterval and 15 minutes for the MaxElapsedTime. Fix jtblin#28
@@ -49,6 +50,8 @@ func addFlags(s *cmd.Server, fs *pflag.FlagSet) { | |||
fs.BoolVar(&s.AddIPTablesRule, "iptables", false, "Add iptables rule (also requires --host-ip)") | |||
fs.StringVar(&s.HostInterface, "host-interface", "docker0", "Host interface for proxying AWS metadata") | |||
fs.StringVar(&s.HostIP, "host-ip", s.HostIP, "IP address of host") | |||
fs.DurationVar(&s.BackoffMaxInterval, "backoff-max-interval", backoff.DefaultMaxInterval, "Max interval for backoff when querying for role.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'd rather change the defaults to some saner values. We probably don't want to retry for more than a few seconds actually, what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that makes sense. Updated to more sane defaults. Let me know what you think.
Thanks! |
Thanks, any chance you plan to cut a release with the latest changes? :) |
Yep gonna do this today real soon :) |
Awesome! |
Done, https://github.com/jtblin/kube2iam/releases/tag/0.3.0 and published image as well https://hub.docker.com/r/jtblin/kube2iam/tags/ |
Sets smaller timeout when getting role from Pod IP. jtblin/kube2iam#33
This makes the max interval and max elapsed time configurabe for the exponential backoff used when getting a role based on source IP. The defaults are still the same e.g. 1 minute for MaxInterval and 15 minutes for the MaxElapsedTime. Fix jtblin#28 * Use sane max interval & max elapsed time defaults
This makes the max interval and max elapsed time configurabe for the exponential backoff used when getting a role based on source IP. The defaults are still the same e.g. 1 minute for MaxInterval and 15 minutes for the MaxElapsedTime. Fix jtblin#28 * Use sane max interval & max elapsed time defaults
This makes the max interval and max elapsed time configurabe for the exponential backoff used when getting a role based on source IP. The defaults are still the same e.g. 1 minute for MaxInterval and 15 minutes for the MaxElapsedTime. Fix jtblin#28 * Use sane max interval & max elapsed time defaults
This makes the max interval and max elapsed time configurabel for the
exponential backoff used when getting a role based on source IP.
The defaults are still the same e.g. 1 minute for MaxInterval and 15
minutes for the MaxElapsedTime.
Fix #28