kubectl label node

1 개요[ | ]

kubectl label node
root@master:~# kubectl get no -l disktype=ssd
No resources found.
root@master:~# kubectl get no -L disktype
NAME     STATUS   ROLES    AGE   VERSION   DISKTYPE
master   Ready    master   11h   v1.14.0
node01   Ready    <none>   11h   v1.14.0
root@master:~# kubectl label node node01 disktype=ssd
node/node01 labeled
root@master:~# kubectl get no -l disktype=ssd
NAME     STATUS   ROLES    AGE   VERSION
node01   Ready    <none>   11h   v1.14.0
root@master:~# kubectl get no -L disktype
NAME     STATUS   ROLES    AGE   VERSION   DISKTYPE
master   Ready    master   11h   v1.14.0
node01   Ready    <none>   11h   v1.14.0   ssd
root@master:~# kubectl label node node01 disktype-
node/node01 labeled
root@master:~# kubectl get no -l disktype=ssd
No resources found.
root@master:~# kubectl get no -L disktype
NAME     STATUS   ROLES    AGE   VERSION   DISKTYPE
master   Ready    master   11h   v1.14.0
node01   Ready    <none>   11h   v1.14.0

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}