<p>Does Kubernetes support for STONITH operations for hardware nodes? We have smart electric sockets which allows for API for 'power off server', and they work great with pacemaker.</p>

<p>Does Kubernetes support STONITH? </p>

<p>No yet.<br />
STONITH is mentioned in <a href="https://github.com/kubernetes/kubernetes/issues/39828" rel="nofollow noreferrer">kubernetes issue 39828</a></p>
<blockquote>
<p>STONITH (&quot;Shoot The Other Node In The Head&quot; or &quot;Shoot The Offending Node In The Head&quot;), sometimes called STOMITH (&quot;Shoot The Other Member/Machine In The Head&quot;), is a technique for <strong>fencing</strong> in computer clusters.<a href="https://github.com/kubernetes/kubernetes/issues/39828" rel="nofollow noreferrer">1</a></p>
<p>Fencing is the isolation of a failed node so that it does not cause disruption to a computer cluster. As its name suggests, STONITH fences failed nodes by resetting or powering down the failed node.</p>
</blockquote>
<p>It is actually discussed in <a href="https://github.com/kubernetes/kops/issues/2002" rel="nofollow noreferrer">kubernetes/kops issue 2002</a></p>
<blockquote>
<p>I think we should take a look at the autoscaler and I think we could default to Reboot, perhaps configurable in the manifest to AllowTermination.</p>
</blockquote>
<p>But this is stale at the moment.</p>
<p>This is also described in <a href="https://github.com/kubernetes/community/blob/e8f6a0f8b4ba8fc3afb6733cc9301b74d35090a1/contributors/design-proposals/storage/pod-safety.md" rel="nofollow noreferrer">kubernetes/community/contributors/design-proposals/storage/pod-safety.md</a></p>
<blockquote>
<p>In order to reconcile partitions, an actor (human or automated) must decide when the partition is unrecoverable. The actor may be informed of the failure in an unambiguous way (e.g. the node was destroyed by a meteor) allowing for certainty that the processes on that node are terminated, and thus may resolve the partition by deleting the node and the pods on the node.<br />
<strong>Alternatively, the actor may take steps to ensure the partitioned node cannot return to the cluster or access shared resources - this is known as fencing</strong> and is a well understood domain.</p>
</blockquote>
