搜索

1.4. 创建集群管理员用户以快速集群访问

download PDF

在配置身份提供程序前,您可以创建具有 cluster-admin 特权的用户,以便立即在 AWS (ROSA) 集群上访问 Red Hat OpenShift Service。

注意

当您需要快速访问新部署的集群时,集群管理员用户很有用。但是,请考虑配置身份提供程序,并根据需要为身份提供程序用户授予集群管理员特权。有关为您的 ROSA 集群设置身份提供程序的更多信息,请参阅配置身份提供程序并授予集群访问权限

流程

  1. 创建集群管理员用户:

    $ rosa create admin --cluster=<cluster_name> 1
    1
    <cluster_name> 替换为集群的名称。

    输出示例

    W: It is recommended to add an identity provider to login to this cluster. See 'rosa create idp --help' for more information.
    I: Admin account has been added to cluster '<cluster_name>'.
    I: Please securely store this generated password. If you lose this password you can delete and recreate the cluster admin user.
    I: To login, run the following command:
    
       oc login https://api.example-cluster.wxyz.p1.openshiftapps.com:6443 --username cluster-admin --password d7Rca-Ba4jy-YeXhs-WU42J
    
    I: It may take up to a minute for the account to become active.

    注意

    激活 cluster-admin 用户的过程可能需要大约一分钟才能完成。

其他资源

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.