18.2. system:admin ユーザーの権限の借用
OpenShift コンソールを使用すると、ユーザーになりすまして複数のグループメンバーシップを同時に選択することで、そのユーザーの実効権限を再現できます。
手順
system:adminの権限を借用するためにユーザーパーミッションを付与するには、以下のコマンドを実行します。$ oc create clusterrolebinding <any_valid_name> --clusterrole=sudoer --user=<username>ヒントまたは、以下の YAML を適用して、
system:adminの偽装権限を割り当てることができます。apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: <any_valid_name> roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: sudoer subjects: - apiGroup: rbac.authorization.k8s.io kind: User name: <username>