Public
Authored by 张律 💀

[openshift]给节点打标签

Edited
label.sh 59 Bytes
    • 查询标签,可以先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

    • 删除标签

    oc label pods foo bar-

    实例

    oc label nodes bdex114.eazytec.intra infra- image

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment