Menu Close

Red Hat Training

A Red Hat training course is available for OpenShift Container Platform

5.5. 管理用户和组标签

为用户或组群添加标签:

$ oc label user/<user_name> <label_name>=<label_value>

例如,如果用户名是 user ,且 标签是 level=gold

$ oc label user/theuser level=gold

删除标签:

$ oc label user/<user_name> <label_name>-

显示用户或组群的标签:

$ oc describe user/<user_name>