Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Istio to allow all egress traffic

How do you allow all outbound traffic with Istio?

I tried the following:

  • Disable the egress gateway and bypass the sidecar with --set global.proxy.includeIPRanges="0.0.0.0/0\,0.0.0.0/0"

None of the options work, worth to mention I'm using kubernetes 1.11.2

like image 322
user399256 Avatar asked Nov 07 '22 01:11

user399256


2 Answers

I assume you followed this, that's pretty much the way to do it.

Make sure that you update the istio-sidecar-injector ConfigMap on your namespace and restart your pods.

like image 56
Rico Avatar answered Nov 15 '22 09:11

Rico


Doing **global.proxy.includeIPRanges: "0.0.0.0" ** won't work. Its probably by defualt 0.0.0.0. The global.proxy.includeIPRanges tells istio what IPs are included in the mesh and you want the opposite.

So if your k8s svc CIDR is 10.244.0.0/16 do global.proxy.includeIPRanges: "10.244.0.0/16" everything out of that range will bypass istio

like image 22
Bobby Donchev Avatar answered Nov 15 '22 09:11

Bobby Donchev