mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
59 lines
1.1 KiB
Plaintext
59 lines
1.1 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * cli_reference/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
|
|
----
|