|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * rosa_hcp/rosa-hcp-cluster-no-cni.adoc |
| 4 | + |
| 5 | +:_mod-docs-content-type: PROCEDURE |
| 6 | +[id="rosa-hcp-sts-creating-a-cluster-cli_{context}-no-cni"] |
| 7 | += Creating the cluster |
| 8 | + |
| 9 | +When using the {product-title} (ROSA) command line interface (CLI), `rosa`, to create a cluster, you can add an optional flag `--no-cni` to create a cluster without a CNI plugin. |
| 10 | + |
| 11 | +.Prerequisites |
| 12 | + |
| 13 | +* You have completed the AWS prerequisites for {hcp-title}. |
| 14 | +* You have available AWS service quotas. |
| 15 | +* You have enabled the ROSA service in the AWS Console. |
| 16 | +* You have installed and configured the latest ROSA CLI (`rosa`) on your installation host. Run `rosa version` to see your currently installed version of the ROSA CLI. If a newer version is available, the CLI provides a link to download this upgrade. |
| 17 | +* You have logged in to your Red Hat account by using the ROSA CLI. |
| 18 | +* You have created an OIDC configuration. |
| 19 | +* You have verified that the AWS Elastic Load Balancing (ELB) service role exists in your AWS account. |
| 20 | +
|
| 21 | +.Procedure |
| 22 | + |
| 23 | +. You can create your {hcp-title} cluster with one of the following commands. |
| 24 | ++ |
| 25 | +[NOTE] |
| 26 | +==== |
| 27 | +When creating a {hcp-title} cluster, the default machine Classless Inter-Domain Routing (CIDR) is `10.0.0.0/16`. If this does not correspond to the CIDR range for your VPC subnets, add `--machine-cidr <address_block>` to the following commands. To learn more about the default CIDR ranges for {product-title}, see xref:../networking/cidr-range-definitions.adoc#cidr-range-definitions[CIDR range definitions]. |
| 28 | +==== |
| 29 | ++ |
| 30 | +** Create a cluster with a single, initial machine pool, publicly available API, publicly available Ingress, and no CNI plugin by running the following command: |
| 31 | ++ |
| 32 | +[source,terminal] |
| 33 | +---- |
| 34 | +$ rosa create cluster --cluster-name=<cluster_name> \ |
| 35 | + --sts --mode=auto --hosted-cp --operator-roles-prefix <operator-role-prefix> \ |
| 36 | + --oidc-config-id <ID-of-OIDC-configuration> --subnet-ids=<public-subnet-id>,<private-subnet-id> --no-cni |
| 37 | +---- |
| 38 | + |
| 39 | +** Create a cluster with a single, initial machine pool, privately available API, privately available Ingress, and no CNI plugin by running the following command: |
| 40 | ++ |
| 41 | +[source,terminal] |
| 42 | +---- |
| 43 | +$ rosa create cluster --private --cluster-name=<cluster_name> \ |
| 44 | + --sts --mode=auto --hosted-cp --subnet-ids=<private-subnet-id> --no-cni |
| 45 | +---- |
| 46 | + |
| 47 | +** If you used the `OIDC_ID`, `SUBNET_IDS`, and `OPERATOR_ROLES_PREFIX` variables to prepare your environment, you can continue to use those variables when creating your cluster without a CNI plugin. For example, run the following command: |
| 48 | ++ |
| 49 | +[source,terminal] |
| 50 | +---- |
| 51 | +$ rosa create cluster --hosted-cp --subnet-ids=$SUBNET_IDS --oidc-config-id=$OIDC_ID --cluster-name=<cluster_name> --operator-roles-prefix=$OPERATOR_ROLES_PREFIX --no-cni |
| 52 | +---- |
| 53 | + |
| 54 | +. Check the status of your cluster by running the following command: |
| 55 | ++ |
| 56 | +[source,terminal] |
| 57 | +---- |
| 58 | +$ rosa describe cluster --cluster=<cluster_name> |
| 59 | +---- |
| 60 | ++ |
| 61 | +The following `State` field changes are listed in the output as the cluster installation progresses: |
| 62 | ++ |
| 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 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_. |
| 71 | +==== |
| 72 | ++ |
| 73 | +[IMPORTANT] |
| 74 | +==== |
| 75 | +When you first log in to the cluster after it reaches `ready` status, the nodes will still be in the `not ready` state until you install your own CNI plugin. After CNI installation, the nodes will change to `ready`. |
| 76 | +==== |
| 77 | + |
| 78 | +. Track the progress of the cluster creation by watching the {product-title} installation program logs. To check the logs, run the following command: |
| 79 | ++ |
| 80 | +[source,terminal] |
| 81 | +---- |
| 82 | +$ rosa logs install --cluster=<cluster_name> --watch <1> |
| 83 | +---- |
| 84 | +<1> Optional: To watch for new log messages as the installation progresses, use the `--watch` argument. |
0 commit comments