Istio to allow all egress traffic

10/6/2018

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

-- user399256
istio
kubernetes
outbound

3 Answers

1/21/2019

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

-- Bobby Donchev
Source: StackOverflow

10/6/2018

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.

-- Rico
Source: StackOverflow

12/26/2018

@user399256 if you are using helm charts you just edit that under values.yaml than you have to implement the change as explained in: this actually did anyone try to allow all traffic using global.proxy.includeIPRanges: "0.0.0.0" ? did it work? is there maybe more elegant way ?

-- Shahaf Benita
Source: StackOverflow