|
| 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 | +// * rosa_getting_started/quickstart.adoc |
| 6 | + |
| 7 | +:_content-type: PROCEDURE |
| 8 | +[id="rosa-hcp-sts-creating-a-cluster-cli_{context}"] |
| 9 | += Creating a {hcp} for ROSA cluster using the CLI |
| 10 | + |
| 11 | +When using {product-title} (ROSA) CLI (`rosa`) to create a cluster, you can select the default options to create the cluster quickly. |
| 12 | + |
| 13 | +.Prerequisites |
| 14 | + |
| 15 | +* You have completed the AWS prerequisites for {hcp} for ROSA. |
| 16 | +* You have available AWS service quotas. |
| 17 | +* You have enabled the ROSA service in the AWS Console. |
| 18 | +* You have installed and configured the latest ROSA CLI (`rosa`) on your installation host. |
| 19 | ++ |
| 20 | +[NOTE] |
| 21 | +==== |
| 22 | +To successfully install ROSA clusters, use the latest version of the ROSA CLI (`rosa`). |
| 23 | +==== |
| 24 | +* You have logged in to your Red Hat account by using the `rosa` CLI. |
| 25 | +* You have verified that the AWS Elastic Load Balancing (ELB) service role exists in your AWS account. |
| 26 | +
|
| 27 | +.Procedure |
| 28 | + |
| 29 | +//. Create environmental variables for your region and cluster name. |
| 30 | +//+ |
| 31 | +//[source,terminal] |
| 32 | +//---- |
| 33 | +//CLUSTER_NAME="<cluster-name>" |
| 34 | +//REGION="<region>" |
| 35 | +//---- |
| 36 | + |
| 37 | +. You can create your {hcp} for ROSA cluster with one of the following commands. |
| 38 | ++ |
| 39 | +[NOTE] |
| 40 | +==== |
| 41 | +If you are using your own OIDC provider, you must include the endpoint URL and ARN arguments, such as `--oidc-endpoint-url <oidc_endpoint_url> --oidc-private-key-secret-arn <oidc_private_key_secret_arn>`. |
| 42 | +==== |
| 43 | + |
| 44 | +** Create a cluster with a single, initial machine pool, publicly available API, and publicly available Ingress by running the following command: |
| 45 | ++ |
| 46 | +[source,terminal] |
| 47 | +---- |
| 48 | +$ rosa create cluster --cluster-name=<cluster_name> \ |
| 49 | + --sts --mode=auto --hosted-cp --subnet-ids=<public-subnet-id>,<private-subnet-id> |
| 50 | +---- |
| 51 | + |
| 52 | +** Create a cluster with a single, initial machine pool, privately available API, and privately available Ingress by running the following command: |
| 53 | ++ |
| 54 | +[source,terminal] |
| 55 | +---- |
| 56 | +$ rosa create cluster --private --cluster-name=<cluster_name> \ |
| 57 | + --sts --mode=auto --hosted-cp --subnet-ids=<private-subnet-id> |
| 58 | +---- |
| 59 | ++ |
| 60 | +[NOTE] |
| 61 | +==== |
| 62 | +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. |
| 63 | +==== |
| 64 | + |
| 65 | +. Check the status of your cluster by running the following command: |
| 66 | ++ |
| 67 | +[source,terminal] |
| 68 | +---- |
| 69 | +$ rosa describe cluster --cluster=<cluster_name> |
| 70 | +---- |
| 71 | ++ |
| 72 | +The following `State` field changes are listed in the output as the cluster installation progresses: |
| 73 | ++ |
| 74 | +* `waiting (Waiting for OIDC configuration)` |
| 75 | +* `pending (Preparing account)` |
| 76 | +* `installing (DNS setup in progress)` |
| 77 | +* `installing` |
| 78 | +* `ready` |
| 79 | ++ |
| 80 | +[NOTE] |
| 81 | +==== |
| 82 | +If the installation fails or the `State` field does not change to `ready` after more than 10 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_. |
| 83 | +==== |
| 84 | + |
| 85 | +. Track the progress of the cluster creation by watching the {product-title} installation program logs. To check the logs, run the following command: |
| 86 | ++ |
| 87 | +[source,terminal] |
| 88 | +---- |
| 89 | +$ rosa logs install --cluster=<cluster_name> --watch <1> |
| 90 | +---- |
| 91 | +<1> Optional: To watch for new log messages as the installation progresses, use the `--watch` argument. |
0 commit comments