<p>For two Statefulsets <code>sts1</code> and <code>sts2</code>, would it be possible to schedule:</p>
<ul>
<li>sts1-pod-0 and sts2-pod-0 on the same node,</li>
<li>sts1-pod-1 and sts2-pod-1 on the same node,</li>
<li>...</li>
<li>sts1-pod-n and sts2-pod-n on the same node,</li>
</ul>
<p>An in addition do not collocate two pods of a given Statefulset on the same node?</p>

<pre><code>sts1-pod-0 and sts2-pod-0 on the same node,
sts1-pod-1 and sts2-pod-1 on the same node,
...
sts1-pod-n and sts2-pod-n on the same node,
</code></pre>
<p>One possible way is run the paired containers in the same StatefulSet, this has the same effect as running side by side as pod on the same node. In this case your affinity rule only need to ensure no two pods run on same node.</p>
