Skip to content

Kubernetes nodes

List pod with the nodes they run on:

kubectl get pods -o wide -A

Node lables

List node labels:

kubectl get nodes --show-labels

Add node label:

kubectl label nodes worker1 disktype=ssd

Remove node label:

kubectl label nodes worker1 disktype-