Skip to content

Commit 4bc87ed

Browse files
authored
Merge pull request #83719 from lahinson/osdocs-12035-hcp-tenancy
[OSDOCS-12035]: Adding tenancy docs to HCP on AWS
2 parents ade8f7c + 7a78822 commit 4bc87ed

File tree

2 files changed

+36
-15
lines changed

2 files changed

+36
-15
lines changed

modules/hcp-aws-deploy-hc.adoc

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
:_mod-docs-content-type: PROCEDURE
66
[id="hcp-aws-deploy-hc_{context}"]
7-
= Deploying a hosted cluster on {aws-short}
7+
= Creating a hosted cluster on {aws-short}
88

9-
You can deploy a hosted cluster on {aws-first} by using the `hcp` command-line interface (CLI).
9+
You can create a hosted cluster on {aws-first} by using the `hcp` command-line interface (CLI).
1010

1111
By default for {hcp} on {aws-first}, you use an AMD64 hosted cluster. However, you can enable {hcp} to run on an ARM64 hosted cluster. For more information, see "Running hosted clusters on an ARM64 architecture".
1212

@@ -30,21 +30,22 @@ For compatible combinations of node pools and hosted clusters, see the following
3030
3131
.Procedure
3232

33-
* To create the hosted cluster on {aws-short}, run the following command:
33+
. To create a hosted cluster on {aws-short}, run the following command:
3434
+
3535
[source,terminal]
3636
----
3737
$ hcp create cluster aws \
38-
--name <hosted_cluster_name> \ <1>
39-
--infra-id <infra_id> \ <2>
40-
--base-domain <basedomain> \ <3>
41-
--sts-creds <path_to_sts_credential_file> \ <4>
42-
--pull-secret <path_to_pull_secret> \ <5>
43-
--region <region> \ <6>
38+
--name <hosted_cluster_name> \// <1>
39+
--infra-id <infra_id> \// <2>
40+
--base-domain <basedomain> \// <3>
41+
--sts-creds <path_to_sts_credential_file> \// <4>
42+
--pull-secret <path_to_pull_secret> \// <5>
43+
--region <region> \// <6>
4444
--generate-ssh \
45-
--node-pool-replicas <node_pool_replica_count> \ <7>
46-
--namespace <hosted_cluster_namespace> \ <8>
47-
--role-arn <role_name> <9>
45+
--node-pool-replicas <node_pool_replica_count> \// <7>
46+
--namespace <hosted_cluster_namespace> \// <8>
47+
--role-arn <role_name> \// <9>
48+
--render-into <file_name>.yaml <10>
4849
----
4950
<1> Specify the name of your hosted cluster, for instance, `example`.
5051
<2> Specify your infrastructure name. You must provide the same value for `<hosted_cluster_name>` and `<infra_id>`. Otherwise the cluster might not appear correctly in the {mce} console.
@@ -55,6 +56,26 @@ $ hcp create cluster aws \
5556
<7> Specify the node pool replica count, for example, `3`.
5657
<8> By default, all `HostedCluster` and `NodePool` custom resources are created in the `clusters` namespace. You can use the `--namespace <namespace>` parameter, to create the `HostedCluster` and `NodePool` custom resources in a specific namespace.
5758
<9> Specify the Amazon Resource Name (ARN), for example, `arn:aws:iam::820196288204:role/myrole`.
59+
<10> If you want to indicate whether the EC2 instance runs on shared or single tenant hardware, include this field. The `--render-into` flag renders Kubernetes resources into the YAML file that you specify in this field. Then, continue to the next step to edit the YAML file.
60+
61+
. If you included the `--render-into` flag in the previous command, edit the specified YAML file. Edit the `NodePool` specification in the YAML file to indicate whether the EC2 instance should run on shared or single-tenant hardware, similar to the following example:
62+
+
63+
.Example YAML file
64+
[source,yaml]
65+
----
66+
apiVersion: hypershift.openshift.io/v1beta1
67+
kind: NodePool
68+
metadata:
69+
name: <nodepool_name> <1>
70+
spec:
71+
platform:
72+
aws:
73+
placement:
74+
tenancy: "default" <2>
75+
----
76+
+
77+
<1> Specify the name of the `NodePool` resource.
78+
<2> Specify a valid value for tenancy: `"default"`, `"dedicated"`, or `"host"`. Use `"default"` when node pool instances run on shared hardware. Use `"dedicated"` when each node pool instance runs on single-tenant hardware. Use `"host"` when node pool instances run on your pre-allocated dedicated hosts.
5879

5980
.Verification
6081

@@ -70,4 +91,4 @@ $ oc get hostedclusters -n <hosted_cluster_namespace>
7091
[source,terminal]
7192
----
7293
$ oc get nodepools --namespace <hosted_cluster_namespace>
73-
----
94+
----

modules/hcp-aws-hc-ext-dns.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
:_mod-docs-content-type: PROCEDURE
66
[id="hcp-aws-hc-ext-dns_{context}"]
7-
= Deploying a hosted cluster by using the external DNS on {aws-short}
7+
= Creating a hosted cluster by using the external DNS on {aws-short}
88

99
To create a hosted cluster by using the `PublicAndPrivate` or `Public` publishing strategy on {aws-first}, you must have the following artifacts configured in your management cluster:
1010

@@ -67,4 +67,4 @@ $ hcp create cluster aws \
6767
<8> Specify the supported {product-title} version that you want to use, for example, `4.17.0-multi`.
6868
<9> Specify the public hosted zone that the service provider owns, for example, `service-provider-domain.com`.
6969
<10> Set as `PublicAndPrivate`. You can use external DNS with `Public` or `PublicAndPrivate` configurations only.
70-
<11> Specify the path to your {aws-short} STS credentials file, for example, `/home/user/sts-creds/sts-creds.json`.
70+
<11> Specify the path to your {aws-short} STS credentials file, for example, `/home/user/sts-creds/sts-creds.json`.

0 commit comments

Comments
 (0)