<p>I have some little confusion. Please clarify.</p>

<p>In kubernetes we have concept called affinity and anti-affinity.</p>

<p>affinity provided two types </p>

<p>1: node affinity</p>

<p>2: pod-affinity</p>

<p>I want to know what are types are provided by anti-affinity?</p>

<p>I am thinking like anti-affinity is providing the type called podAntiAffinity, is it correct, actually i have a document for this but having little doubt. Please clarify</p>

kaka
<p>You have only <code>podAntiAffinity</code>. There is no <code>nodeAntiAffinity</code> and is not required. You can use <code>NotIn</code> or <code>DoesNotExist</code> operator with <code>nodeAffinity</code> to get behaviour similar to what you would expect if <code>nodeAntiAffinity</code> is available. </p>
