<p>I am trying to use kubernetes stateful set controller for one of my application. As i understand from the documentation of stateful set, with Orderedready policy it creates the pod in order and does not proceed to create the next one until the previous one is in ready state.
My question is how the controller determine the pod is in ready state ? what probe it perform to determine if the current pod is in ready state ?</p>

<p>The statefulset controller doesn't perform any probe, it watches for its pods that are in <code>Running</code> and <code>Ready</code> state.</p>
<p>The status of the Pod's is updated by the APIserver after performing the probe checks. If you configure custom probes ( ie. readinessProbe, livenessProbe), those will be used. Otherwise,</p>
<blockquote>
<p>If a Container does not provide a liveness probe, the default state is <code>Success</code>.</p>
</blockquote>
<blockquote>
<p>If a Container does not provide a readiness probe, the default state is <code>Success</code>.</p>
</blockquote>
