Home > Software design >  Kill/stop Istio envoy proxy
Kill/stop Istio envoy proxy

Time:06-13

I’m doing some chaos testing in K8s. My platform use Istio envoy sidecar, and as some use case of my chaos scenarios, I would like to stop/kill a envoy proxy without kill the service container, and see what is the standard behavior.

So far I don’t manage to figure how to do it through kubectl/istioctl.

Any idea how to accomplish this?

Regards

CodePudding user response:

You might try and configure your Istio Virtual Service with a secondary HTTP route with a Route Destination:

  • pointed to nowhere,
  • with a weight of 0 (so not receiving any traffic)

Setting that weight to 100 would activate that fake route, effectively "killing" the router (in that it sends the traffic to "nowhere"), while the service remains active.

CodePudding user response:

Use the /quitquitquit endpoint:

https://www.envoyproxy.io/docs/envoy/latest/operations/admin#post--quitquitquit

curl -sf -XPOST http://127.0.0.1:15020/quitquitquit

  • Related