project 如何查看用户的 role 信息
1. 背景
工作遇到的类似问题,参考官网进行收集归档,进行笔记形式的记录,便于后续查看。
2. 环境
OpenShift Container Platform (OCP) 4.z
3. 问题
在 project 中如何查看用户的 role 信息呢,可以通过命令,将信息导出到 Yaml 中。
4. 参考解决方案
#命令如下:
oc get clusterrolebindings -o yaml > clusterrolebindings.yaml
oc get clusterrole -o yaml > clusterrole.yaml
oc get rolebindings -o yaml > rolebindings.yaml
oc get role -o yaml > role.yaml