Site icon Narayana Tutorial

Kubernetes Node Commands

By using the following commands, we can handle the operations on Node like node describe, node in yaml, get node, cordon & uncordon node.

 

Node Describe

By Using this command, we can get the describe node in the namespace.

kubectl describe node <node-space>

 

Get Node in yaml

Using this command we can get the Get node in yaml in the namespace.

kubectl get node <name-space> -o yaml

 

Get Node

Using this command we can get the Get node in the namespace.

kubectl get node <name-space>

 

Drain Node

Using this command, we can get the drain node details in the namespace.

kubectl drain node <name-space>

 

Cordon Node

By Using this command, we can get the cordon node in the namespace.

kubectl cordon node <name-space>

Uncordon Node

Using this command, we can get the Uncordon node in the namespace.

kubectl uncordon node <name-space>