Complete the command to list all nodes in the Kubernetes cluster.
kubectl get [1]The command kubectl get nodes lists all nodes in the cluster.
Complete the command to describe a node named 'worker-1' to see detailed info.
kubectl [1] node worker-1
The describe command shows detailed information about a node, including events and status.
Fix the error in the command to check node status by filling the missing flag.
kubectl get nodes -o [1]The -o wide option shows extra columns like internal IP and node status.
Fill both blanks to create a command that shows node labels and filters nodes with label 'env=prod'.
kubectl get nodes -L [1] --selector=[2]
The -L env option shows the 'env' label column, and --selector=env=prod filters nodes with that label.
Fill all three blanks to create a command that cordons a node, drains it, and then deletes it.
kubectl [1] node worker-2 && kubectl [2] node worker-2 --ignore-daemonsets --delete-local-data && kubectl [3] node worker-2
First, cordon marks the node unschedulable. Then, drain safely evicts pods. Finally, delete removes the node from the cluster.