angelnu / pod-gateway

Container image used to set a pod gateway
Apache License 2.0
56 stars 29 forks source link

FR: Configurable leasetime #48

Open planeturban opened 9 months ago

planeturban commented 9 months ago

Details

12 hours lease time is quite long, at least if you're restarting pods at the same rate as I do (at least when trying stuff out). If you have 10 pods in a namespace and restart them 20 times in a day you'll end up with no more addresses in the /24-ish (20-255) network that dnsmasq is configured to use as per line 27.

So, if it's either set to a more reasonable value (1h) or if it's configurable, it'd be nice.