2.8. 列出和描述对象
本节介绍了集群和资源的 list
和 describe
命令。
2.8.1. 列出附加组件
列出受管服务附加组件安装。
语法
$ rosa list addons --cluster=<cluster_name> | <cluster_id>
表 2.39. 参数
选项 | 定义 |
---|---|
--cluster | 必需:要列出附加组件的集群的名称或 ID (字符串)。 |
表 2.40. 从父命令继承的可选参数
选项 | 定义 |
---|---|
--help | 显示此命令的帮助信息。 |
--debug | 启用调试模式。 |
--profile | 指定来自您的凭证文件中的 AWS 配置集(字符串)。 |
2.8.2. 列出集群
列出所有集群。
语法
$ rosa list clusters [arguments]
表 2.41. 参数
选项 | 定义 |
---|---|
--count |
要显示的集群数量(整数)。默认: |
表 2.42. 从父命令继承的可选参数
选项 | 定义 |
---|---|
--help | 显示此命令的帮助信息。 |
--debug | 启用调试模式。 |
--profile | 指定来自您的凭证文件中的 AWS 配置集(字符串)。 |
2.8.3. list idps
列出集群的所有身份提供程序 (IDP)。
语法
$ rosa list idps --cluster=<cluster_name> | <cluster_id> [arguments]
表 2.43. 参数
选项 | 定义 |
---|---|
--cluster | 必需:为其列出 IDP 的集群的名称或 ID (字符串)。 |
表 2.44. 从父命令继承的可选参数
选项 | 定义 |
---|---|
--help | 显示此命令的帮助信息。 |
--debug | 启用调试模式。 |
--profile | 指定来自您的凭证文件中的 AWS 配置集(字符串)。 |
示例
列出名为 mycluster
的集群的所有身份提供程序 (IDP)。
$ rosa list idps --cluster=mycluster
2.8.4. 列出 ingresses
列出集群的所有 API 和入口端点。
语法
$ rosa list ingresses --cluster=<cluster_name> | <cluster_id> [arguments]
表 2.45. 参数
选项 | 定义 |
---|---|
--cluster | 必需:为其列出 IDP 的集群的名称或 ID (字符串)。 |
表 2.46. 从父命令继承的可选参数
选项 | 定义 |
---|---|
--help | 显示此命令的帮助信息。 |
--debug | 启用调试模式。 |
--profile | 指定来自您的凭证文件中的 AWS 配置集(字符串)。 |
示例
列出名为 mycluster
的集群的所有 API 和入口端点。
$ rosa list ingresses --cluster=mycluster
2.8.5. list instance-types
列出用于 AWS 上的 Red Hat OpenShift Service 的所有可用实例类型。可用性基于帐户的 AWS 配额。
语法
$ rosa list instance-types [arguments]
表 2.47. 从父命令继承的可选参数
选项 | 定义 |
---|---|
--help | 显示此命令的帮助信息。 |
--debug | 启用调试模式。 |
--output |
输出格式。允许的格式是 |
--profile | 指定来自您的凭证文件中的 AWS 配置集(字符串)。 |
示例
列出所有实例类型。
$ rosa list instance-types
2.8.6. list machinepools
列出集群上配置的机器池。
语法
$ rosa list machinepools --cluster=<cluster_name> | <cluster_id> [arguments]
表 2.48. 参数
选项 | 定义 |
---|---|
--cluster | 必需:列出机器池用于的集群的名称或 ID (字符串)。 |
表 2.49. 从父命令继承的可选参数
选项 | 定义 |
---|---|
--help | 显示此命令的帮助信息。 |
--debug | 启用调试模式。 |
--profile | 指定来自您的凭证文件中的 AWS 配置集(字符串)。 |
示例
列出名为 mycluster
的集群中的所有机器池。
$ rosa list machinepools --cluster=mycluster
2.8.7. 列出区域
列出当前 AWS 帐户的所有可用区域。
语法
$ rosa list regions [arguments]
表 2.50. 参数
选项 | 定义 |
---|---|
--multi-az | 列出为多个可用区支持的区域。 |
表 2.51. 从父命令继承的可选参数
选项 | 定义 |
---|---|
--help | 显示此命令的帮助信息。 |
--debug | 启用调试模式。 |
--profile | 指定来自您的凭证文件中的 AWS 配置集(字符串)。 |
示例
列出所有可用区域。
$ rosa list regions
2.8.8. 列出升级
列出所有可用的和已调度的集群版本升级。
语法
$ rosa list upgrades --cluster=<cluster_name> | <cluster_id> [arguments]
表 2.52. 参数
选项 | 定义 |
---|---|
--cluster | 必需:列出可用升级的集群的名称或 ID (字符串)。 |
表 2.53. 从父命令继承的可选参数
选项 | 定义 |
---|---|
--help | 显示此命令的帮助信息。 |
--debug | 启用调试模式。 |
--profile | 指定来自您的凭证文件中的 AWS 配置集(字符串)。 |
示例
列出名为 mycluster
的集群的所有可用升级。
$ rosa list upgrades --cluster=mycluster
2.8.9. 列出用户
列出指定集群的集群管理员和专用管理员用户。
语法
$ rosa list users --cluster=<cluster_name> | <cluster_id> [arguments]
表 2.54. 参数
选项 | 定义 |
---|---|
--cluster | 必需:集群管理员要列出的集群的名称或 ID (字符串)。 |
表 2.55. 从父命令继承的可选参数
选项 | 定义 |
---|---|
--help | 显示此命令的帮助信息。 |
--debug | 启用调试模式。 |
--profile | 指定来自您的凭证文件中的 AWS 配置集(字符串)。 |
示例
列出名为 mycluster
的集群的所有集群管理员和专用管理员。
$ rosa list users --cluster=mycluster
2.8.10. 列出版本
列出所有可用于创建集群的 OpenShift 版本。
语法
$ rosa list versions [arguments]
表 2.56. 从父命令继承的可选参数
选项 | 定义 |
---|---|
--help | 显示此命令的帮助信息。 |
--debug | 启用调试模式。 |
--profile | 指定来自您的凭证文件中的 AWS 配置集(字符串)。 |
示例
列出所有 OpenShift Container Platform 版本。
$ rosa list versions
2.8.11. 描述管理员
显示指定 cluster-admin
用户以及要登录到集群的命令的详细信息。
语法
$ rosa describe admin --cluster=<cluster_name> | <cluster_id> [arguments]
表 2.57. 参数
选项 | 定义 |
---|---|
--cluster | 必需: cluster-admin 所属集群的名称或 ID (字符串)。 |
表 2.58. 从父命令继承的可选参数
选项 | 定义 |
---|---|
--help | 显示此命令的帮助信息。 |
--debug | 启用调试模式。 |
--profile | 指定来自您的凭证文件中的 AWS 配置集(字符串)。 |
示例
描述名为 mycluster
的集群的 cluster-admin
用户。
$ rosa describe admin --cluster=mycluster
2.8.12. 描述附加组件
显示托管服务附加组件的详细信息。
语法
$ rosa describe addon <addon_id> | <addon_name> [arguments]
表 2.59. 从父命令继承的可选参数
选项 | 定义 |
---|---|
--help | 显示此命令的帮助信息。 |
--debug | 启用调试模式。 |
--profile | 指定来自您的凭证文件中的 AWS 配置集(字符串)。 |
示例
描述名为 dbaas-operator
的附加组件。
$ rosa describe addon dbaas-operator
2.8.13. 描述集群
显示集群的详情。
语法
$ rosa describe cluster --cluster=<cluster_name> | <cluster_id> [arguments]
表 2.60. 参数
选项 | 定义 |
---|---|
--cluster | 必需:集群的名称或 ID (字符串)。 |
表 2.61. 从父命令继承的可选参数
选项 | 定义 |
---|---|
--help | 显示此命令的帮助信息。 |
--debug | 启用调试模式。 |
--profile | 指定来自您的凭证文件中的 AWS 配置集(字符串)。 |
示例
描述名为 mycluster
的集群。
$ rosa describe cluster --cluster=mycluster