Reputation: 13471
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
Upvotes: 1
Views: 2355
Reputation: 335
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
Upvotes: 2
Reputation: 1326982
You might try and configure your Istio Virtual Service with a secondary HTTP route with a Route Destination:
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.
Upvotes: 1