  def Cordon(self) -> None:
    """Cordons the node, making the node unschedulable.

    https://kubernetes.io/docs/concepts/architecture/nodes/#manual-node-administration  # pylint: disable=line-too-long
    """
    api = self._Api(client.CoreV1Api)
    # Create the body as per the API call to PATCH in
    # `kubectl cordon NODE_NAME`
    body = {'spec': {'unschedulable': True}}
    # Cordon the node with the PATCH verb
    api.patch_node(self.name, body)
Cordons the node, making the node unschedulable.

https://kubernetes.io/docs/concepts/architecture/nodes/#manual-node-administration  # pylint: disable=line-too-long
libcloudforensics/providers/kubernetes/base.py