|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * hosted_control_planes/hcp-manage/hcp-manage-aws.adoc |
| 4 | + |
| 5 | +:_mod-docs-content-type: CONCEPT |
| 6 | +[id="hcp-managed-aws-hc-separate_{context}"] |
| 7 | += Creating a hosted cluster separately |
| 8 | + |
| 9 | +You can create a hosted cluster separately on {aws-first}. |
| 10 | + |
| 11 | +To create a hosted cluster separately, enter the following command: |
| 12 | + |
| 13 | +[source,terminal] |
| 14 | +[subs="+quotes"] |
| 15 | +---- |
| 16 | +$ hcp create cluster aws \ |
| 17 | + --infra-id <infra_id> \// <1> |
| 18 | + --name <hosted_cluster_name> \// <2> |
| 19 | + --sts-creds <path_to_sts_credential_file> \// <3> |
| 20 | + --pull-secret <path_to_pull_secret> \// <4> |
| 21 | + --generate-ssh \// <5> |
| 22 | + --node-pool-replicas 3 |
| 23 | + --role-arn <role_name> <6> |
| 24 | +---- |
| 25 | +<1> Replace `<infra_id>` with the same ID that you specified in the `create infra aws` command. This value identifies the IAM resources that are associated with the hosted cluster. |
| 26 | +<2> Replace `<hosted_cluster_name>` with the name of your hosted cluster. |
| 27 | +<3> Replace `<path_to_sts_credential_file>` with the same name that you specified in the `create infra aws` command. |
| 28 | +<4> Replace `<path_to_pull_secret>` with the name of the file that contains a valid {ocp-short} pull secret. |
| 29 | +<5> The `--generate-ssh` flag is optional, but is good to include in case you need to SSH to your workers. An SSH key is generated for you and is stored as a secret in the same namespace as the hosted cluster. |
| 30 | +<6> Replace `<role_name>` with the Amazon Resource Name (ARN), for example, `arn:aws:iam::820196288204:role/myrole`. Specify the Amazon Resource Name (ARN), for example, `arn:aws:iam::820196288204:role/myrole`. For more information about ARN roles, see "Identity and Access Management (IAM) permissions". |
| 31 | + |
| 32 | +You can also add the `--render` flag to the command and redirect output to a file where you can edit the resources before you apply them to the cluster. |
| 33 | + |
| 34 | +After you run the command, the following resources are applied to your cluster: |
| 35 | + |
| 36 | +* A namespace |
| 37 | +* A secret with your pull secret |
| 38 | +* A `HostedCluster` |
| 39 | +* A `NodePool` |
| 40 | +* Three AWS STS secrets for control plane components |
| 41 | +* One SSH key secret if you specified the `--generate-ssh` flag. |
0 commit comments