<p>I need to reproduce the case when the one service in k8s because of pure resource management acts as the slow socket attack and thus causing the wrong and unexpected behavior to another service, not handling this slow socket response/requests well. But currently it is impossible to to put the slow socket service into that state on demand. To debug and verify I need to put something working as a controlled slow socket proxy (traffic speed lowering, delays, introducing timeouts and so on) between the services of interest. Is there some out-of-box solution to be deployed to k8s to work as a slow socket proxy?</p>

<p>Kubernetes does not provide a built-in functionality to test against what you mention.</p>
<p>Instead, the failure you mentioned can be tested against with 3rd party tools.  One tool you can use is Litmus Chaos. It is an application designed with chaos engineering principle.</p>
<p>Inside Litmus Chaos, different &quot;chaos&quot; are defined as an experiment. There are  a number of built-in experiments you can use. One experiemnt is called <code>Pod Network Latency</code> as documented <a href="https://litmuschaos.github.io/litmus/experiments/categories/pods/pod-network-latency/" rel="nofollow noreferrer">here</a>.</p>
<p>As you have not provided the pod spec, I cannot help you to construct the experiment YAML. You can refer to the doc and build your &quot;test case&quot; after installation of Litmus Chaos.</p>
