2.5.
2.5.1.
중요
사전 요구 사항
절차
$ rosa create idp --cluster=<cluster_name> --interactive 1
출력 예
I: Interactive mode enabled. Any optional fields can be left empty and a default will be selected. ? Type of identity provider: github ? Identity provider name: github-1 ? Restrict to members of: organizations ? GitHub organizations: <github_org_name> 1 ? To use GitHub as an identity provider, you must first register the application: - Open the following URL: https://github.com/organizations/<github_org_name>/settings/applications/new?oauth_application%5Bcallback_url%5D=https%3A%2F%2Foauth-openshift.apps.<cluster_name>/<random_string>.p1.openshiftapps.com%2Foauth2callback%2Fgithub-1&oauth_application%5Bname%5D=<cluster_name>&oauth_application%5Burl%5D=https%3A%2F%2Fconsole-openshift-console.apps.<cluster_name>/<random_string>.p1.openshiftapps.com - Click on 'Register application' ...
- 참고
... ? Client ID: <github_client_id> 1 ? Client Secret: [? for help] <github_client_secret> 2 ? GitHub Enterprise Hostname (optional): ? Mapping method: claim 3 I: Configuring IDP for cluster '<cluster_name>' I: Identity Provider 'github-1' has been created. It will take up to 1 minute for this configuration to be enabled. To add cluster administrators, see 'rosa grant user --help'. To login into the console, open https://console-openshift-console.apps.<cluster_name>.<random_string>.p1.openshiftapps.com and click on github-1.
참고$ rosa list idps --cluster=<cluster_name>
출력 예
NAME TYPE AUTH URL github-1 GitHub https://oauth-openshift.apps.<cluster_name>.<random_string>.p1.openshiftapps.com/oauth2callback/github-1
추가 리소스
2.5.2.
사전 요구 사항
절차
2.5.3.
사전 요구 사항
절차
$ rosa grant user cluster-admin --user=<idp_user_name> --cluster=<cluster_name> 1
출력 예
I: Granted role 'cluster-admins' to user '<idp_user_name>' on cluster '<cluster_name>'
$ rosa list users --cluster=<cluster_name>
출력 예
ID GROUPS <idp_user_name> cluster-admins
$ rosa grant user dedicated-admin --user=<idp_user_name> --cluster=<cluster_name>
출력 예
I: Granted role 'dedicated-admins' to user '<idp_user_name>' on cluster '<cluster_name>'
$ rosa list users --cluster=<cluster_name>
출력 예
ID GROUPS <idp_user_name> dedicated-admins