- 查询标签,可以先describe查看所有标签,然后使用get -L 查询
oc get -L beta.kubernetes.io/arch -L beta.kubernetes.io/os -L kubernetes.io/hostname -L logging-infra-fluentd -L region -L zone nodes
实例:
oc label pods foo bar-
实例
oc label nodes bdex114.eazytec.intra infra-
* 查询标签,可以先describe查看所有标签,然后使用get -L 查询
`oc get -L beta.kubernetes.io/arch -L beta.kubernetes.io/os -L kubernetes.io/hostname -L logging-infra-fluentd -L region -L zone nodes`
实例:![image](/uploads/-/system/personal_snippet/25/94e050ab5060140b25f3c8b48cae1093/image.png)
* 删除标签
`oc label pods foo bar-`
实例
`oc label nodes bdex114.eazytec.intra infra-`
![image](/uploads/-/system/personal_snippet/25/d8538e68c265241c2a562434b76a8ccd/image.png)