The cordon command in Kubernetes is used to mark a node as unschedulable, which means that no new pods will be scheduled on that node. This is typically done for maintenance or other reasons when you want to prevent new workloads from being assigned to that node.
To cordon a node, you can use the following command:
kubectl cordon <node-name>
Replace <node-name> with the name of the node you want to cordon. After executing this command, you can check the status of the node using:
kubectl get node
Keep in mind that cordoning a node does not affect any existing pods running on that node; they will continue to operate until manually deleted or moved.
