1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-06 06:46:26 +01:00
Files
openshift-docs/modules/cli-administrator-node-management.adoc
2020-08-10 17:49:23 +00:00

65 lines
1.2 KiB
Plaintext

// Module included in the following assemblies:
//
// * cli_reference/openshift_cli/administrator-cli-commands.adoc
[id="cli-node-management-commands_{context}"]
= Node management CLI commands
== cordon
Mark a node as unschedulable. Manually marking a node as unschedulable blocks
any new pods from being scheduled on the node, but does not affect existing pods
on the node.
.Example: Mark `node1` as unschedulable
[source,terminal]
----
$ oc adm cordon node1
----
== drain
Drain a node in preparation for maintenance.
.Example: Drain `node1`
[source,terminal]
----
$ oc adm drain node1
----
== node-logs
Display and filter node logs.
.Example: Get logs for NetworkManager
[source,terminal]
----
$ oc adm node-logs --role master -u NetworkManager.service
----
== taint
Update the taints on one or more nodes.
.Example: Add a taint to dedicate a node for a set of users
[source,terminal]
----
$ oc adm taint nodes node1 dedicated=groupName:NoSchedule
----
.Example: Remove the taints with key `dedicated` from node `node1`
[source,terminal]
----
$ oc adm taint nodes node1 dedicated-
----
== uncordon
Mark a node as schedulable.
.Example: Mark `node1` as schedulable
[source,terminal]
----
$ oc adm uncordon node1
----