This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.此内容没有您所选择的语言版本。
Chapter 14. Impersonating the system:admin user
14.1. API impersonation 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
You can configure a request to the OpenShift Container Platform API to act as though it originated from another user. For more information, see User impersonation in the Kubernetes documentation.
14.2. Impersonating the system:admin user 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
You can grant a user permission to impersonate system:admin
, which grants them cluster administrator permissions.
Procedure
To grant a user permission to impersonate
system:admin
, run the following command:oc create clusterrolebinding <any_valid_name> --clusterrole=sudoer --user=<username>
$ oc create clusterrolebinding <any_valid_name> --clusterrole=sudoer --user=<username>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow