1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/cli-administrator-node-management.adoc
2019-10-04 17:38:25 +00:00

59 lines
1.1 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
----
$ oc adm cordon node1
----
== drain
Drain a node in preparation for maintenance.
.Example: Drain `node1`
----
$ oc adm drain node1
----
== node-logs
Display and filter node logs.
.Example: Get logs for NetworkManager
----
$ 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
----
$ oc adm taint nodes node1 dedicated=groupName:NoSchedule
----
.Example: Remove the taints with key `dedicated` from node `node1`
----
$ oc adm taint nodes node1 dedicated-
----
== uncordon
Mark a node as schedulable.
.Example: Mark `node1` as schedulable
----
$ oc adm uncordon node1
----