|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * rosa_getting_started_sts/rosa_creating_a_cluster_with_sts/rosa-sts-creating-a-cluster-quickly.adoc |
| 4 | +// * rosa_getting_started/rosa-getting-started.adoc |
| 5 | + |
| 6 | +:_content-type: PROCEDURE |
| 7 | +[id="rosa-sts-creating-cluster-using-defaults-cli_{context}"] |
| 8 | += Creating a cluster with the default options using the CLI |
| 9 | + |
| 10 | +When using the {product-title} (ROSA) CLI (`rosa`) to create a cluster that uses the AWS Security Token Service (STS), you can select the default options to create the cluster quickly. |
| 11 | + |
| 12 | +.Prerequisites |
| 13 | + |
| 14 | +* You have completed the AWS prerequisites for ROSA with STS. |
| 15 | +* You have available AWS service quotas. |
| 16 | +* You have enabled the ROSA service in the AWS Console. |
| 17 | +* You have installed and configured the latest ROSA CLI (`rosa`) on your installation host. |
| 18 | ++ |
| 19 | +[NOTE] |
| 20 | +==== |
| 21 | +To successfully install ROSA 4.10 clusters, use the latest version of the ROSA CLI. |
| 22 | +==== |
| 23 | +* You have logged in to your Red Hat account by using the `rosa` CLI. |
| 24 | +* You have verified that the AWS Elastic Load Balancing (ELB) service role exists in your AWS account. |
| 25 | +
|
| 26 | +.Procedure |
| 27 | + |
| 28 | +. Create the required account-wide roles and policies, including the Operator policies: |
| 29 | ++ |
| 30 | +[source,terminal] |
| 31 | +---- |
| 32 | +$ rosa create account-roles --mode auto |
| 33 | +---- |
| 34 | ++ |
| 35 | +[NOTE] |
| 36 | +==== |
| 37 | +When using `auto` mode, you can optionally specify the `-y` argument to bypass the interactive prompts and automatically confirm operations. |
| 38 | +==== |
| 39 | + |
| 40 | +. Create a cluster with STS using the defaults. When you use the defaults, the latest stable OpenShift version is installed: |
| 41 | ++ |
| 42 | +[source,terminal] |
| 43 | +---- |
| 44 | +$ rosa create cluster --cluster-name <cluster_name> --sts --mode auto <1> |
| 45 | +---- |
| 46 | +<1> Replace `<cluster_name>` with the name of your cluster. |
| 47 | ++ |
| 48 | +[NOTE] |
| 49 | +==== |
| 50 | +When you specify `--mode auto`, the `rosa create cluster` command creates the cluster-specific Operator IAM roles and the OIDC provider automatically. The Operators use the OIDC provider to authenticate. |
| 51 | +==== |
| 52 | + |
| 53 | +. Check the status of your cluster: |
| 54 | ++ |
| 55 | +[source,terminal] |
| 56 | +---- |
| 57 | +$ rosa describe cluster --cluster <cluster_name|cluster_id> |
| 58 | +---- |
| 59 | ++ |
| 60 | +The following `State` field changes are listed in the output as the cluster installation progresses: |
| 61 | ++ |
| 62 | +* `waiting (Waiting for OIDC configuration)` |
| 63 | +* `pending (Preparing account)` |
| 64 | +* `installing (DNS setup in progress)` |
| 65 | +* `installing` |
| 66 | +* `ready` |
| 67 | ++ |
| 68 | +[NOTE] |
| 69 | +==== |
| 70 | +If the installation fails or the `State` field does not change to `ready` after about 40 minutes, check the installation troubleshooting documentation for details. For more information, see _Troubleshooting installations_. For steps to contact Red Hat Support for assistance, see _Getting support for Red Hat OpenShift Service on AWS_. |
| 71 | +==== |
| 72 | + |
| 73 | +. Track the progress of the cluster creation by watching the OpenShift installer logs: |
| 74 | ++ |
| 75 | +[source,terminal] |
| 76 | +---- |
| 77 | +$ rosa logs install --cluster <cluster_name|cluster_id> --watch <1> |
| 78 | +---- |
| 79 | +<1> Specify the `--watch` flag to watch for new log messages as the installation progresses. This argument is optional. |
0 commit comments