diff --git a/content/en/docs/tasks/configure-pod-container/assign-pods-nodes.md b/content/en/docs/tasks/configure-pod-container/assign-pods-nodes.md index 55c5a0754b..5b6b78a536 100644 --- a/content/en/docs/tasks/configure-pod-container/assign-pods-nodes.md +++ b/content/en/docs/tasks/configure-pod-container/assign-pods-nodes.md @@ -19,19 +19,19 @@ Kubernetes cluster. ## Add a label to a node -1. List the nodes in your cluster: +1. List the nodes in your cluster, along with their labels: ```shell - kubectl get nodes + kubectl get nodes --show-labels ``` The output is similar to this: ```shell - NAME STATUS ROLES AGE VERSION - worker0 Ready 1d v1.13.0 - worker1 Ready 1d v1.13.0 - worker2 Ready 1d v1.13.0 + NAME STATUS ROLES AGE VERSION LABELS + worker0 Ready 1d v1.13.0 ...,kubernetes.io/hostname=worker0 + worker1 Ready 1d v1.13.0 ...,kubernetes.io/hostname=worker1 + worker2 Ready 1d v1.13.0 ...,kubernetes.io/hostname=worker2 ``` 1. Chose one of your nodes, and add a label to it: