Files
deprecated-helm-charts/stable
Øyvind Ingebrigtsen Øvergaard 971d0d6b29 kube2iam: Don't quote .Values.host.interface; it breaks iptables wildcard support (#387)
* .Values.host.interface shouldn't be quoted

In some network configurations we have to handle traffic to the metadata api
from multiple interfaces - typically the node side of a veth pair, where the
other side lives inside a Pod's network namespace.  We could use the wildcard
functionality in iptables to do this, but setting `host.interface: veth+` in
this chart doesn't work.

This is because the parameter is quoted in the DaemonSet template and kube2iam
ends up sending the parameter it receives on the command-line directly to
`execvp("iptables", ...)`, which means that the parameter stays quoted all the
way into the actual iptables rule. So you end up with a rule that looks like
this:

```shell
iptables -t nat -S PREROUTING | grep 169.254.169.254
-A PREROUTING -d 169.254.169.254/32 -i "veth+" -p tcp -m tcp --dport 80 -j DNAT --to-destination 10.0.0.1:8181
```

this rule only matches an interface named exactly veth+ since the wildcard
character apparently isn't expanded when the interface name is quoted. If we
remove the quoting we can support iptables wildcards and I don't see why it
shouldn't work for exact matching the interface name still.

* Bump version
2017-01-19 10:33:49 -08:00
..
2017-01-04 09:45:36 -08:00
2017-01-09 20:38:11 -08:00
2016-12-05 12:48:13 -08:00
2016-12-15 13:13:27 -08:00
2016-12-21 10:21:59 -08:00
2017-01-13 12:33:43 -08:00
2017-01-11 15:59:55 -08:00
2017-01-18 15:57:53 -07:00
2016-12-19 15:00:14 -08:00
2017-01-03 09:31:34 -08:00
2017-01-18 15:56:15 -07:00