Skip to content

Commit 7e29fc0

Browse files
committed
OSDOCS-15427: Completed CQA for Deploying HCP on IBM Power
1 parent 119546e commit 7e29fc0

13 files changed

+68
-58
lines changed

hosted_control_planes/hcp-deploy/hcp-deploy-ibm-power.adoc

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,22 @@ include::_attributes/common-attributes.adoc[]
66

77
toc::[]
88

9-
You can deploy {hcp} by configuring a cluster to function as a hosting cluster. The hosting cluster is an {product-title} cluster where the control planes are hosted. The hosting cluster is also known as the _management_ cluster.
9+
You can deploy {hcp} by configuring a cluster to function as a hosting cluster. This configuration provides an efficient and scalable solution for managing many clusters. The hosting cluster is an {product-title} cluster that hosts control planes. The hosting cluster is also known as the _management_ cluster.
1010

1111
[NOTE]
1212
====
1313
The _management_ cluster is not the _managed_ cluster. A managed cluster is a cluster that the hub cluster manages.
1414
====
1515

16-
The {mce-short} supports only the default `local-cluster`, which is a hub cluster that is managed, and the hub cluster as the hosting cluster.
16+
The {mce-short} supports only the default `local-cluster`, which is a managed hub cluster, and the hub cluster as the hosting cluster.
1717

18-
To provision {hcp} on bare metal, you can use the Agent platform. The Agent platform uses the central infrastructure management service to add worker nodes to a hosted cluster. For more information, see "Enabling the central infrastructure management service".
18+
To provision {hcp} on bare-metal infrastructure, you can use the Agent platform. The Agent platform uses the central infrastructure management service to add compute nodes to a hosted cluster. For more information, see "Enabling the central infrastructure management service".
1919

20-
Each {ibm-power-title} host must be started with a Discovery Image that the central infrastructure management provides. After each host starts, it runs an Agent process to discover the details of the host and completes the installation. An Agent custom resource represents each host.
20+
You must start each {ibm-power-title} host with a Discovery Image that the central infrastructure management provides. After each host starts, it runs an Agent process to discover the details of the host and completes the installation. An Agent custom resource represents each host.
2121

2222
When you create a hosted cluster with the Agent platform, HyperShift installs the Agent Cluster API provider in the hosted control plane namespace.
2323

24+
// Prerequisites to configure HCP on IBM Power
2425
include::modules/hcp-ibm-power-prereqs.adoc[leveloffset=+1]
2526

2627
[role="_additional-resources"]
@@ -32,30 +33,38 @@ include::modules/hcp-ibm-power-prereqs.adoc[leveloffset=+1]
3233
* xref:../../hosted_control_planes/hcp-prepare/hcp-enable-disable.adoc#hcp-enable-manual_hcp-enable-disable[Manually enabling the {hcp} feature]
3334
* xref:../../hosted_control_planes/hcp-prepare/hcp-enable-disable.adoc#hcp-disable_hcp-enable-disable[Disabling the {hcp} feature]
3435
36+
// IBM Power infrastructure requirements
3537
include::modules/hcp-ibm-power-infra-reqs.adoc[leveloffset=+1]
3638

39+
// DNS configuration for {hcp} on {ibm-power-title}
3740
include::modules/hcp-ibm-power-dns.adoc[leveloffset=+1]
41+
42+
// Defining a custom DNS name
3843
include::modules/hcp-custom-dns.adoc[leveloffset=+2]
3944

45+
// Creating a hosted cluster on bare metal
4046
include::modules/hcp-bm-hc.adoc[leveloffset=+1]
4147

42-
[id="hcp-ibm-power-heterogeneous-nodepools_{context}"]
43-
== Creating heterogeneous node pools on agent hosted clusters
44-
45-
On the agent platform, you can create heterogeneous node pools so that your clusters can run diverse machine types, such as `x86_64` or `ppc64le`, within a single hosted cluster.
46-
47-
include::modules/hcp-ibm-power-create-heterogeneous-nodepools-agent-hc-con.adoc[leveloffset=+2]
48+
// About creating heterogeneous node pools on agent hosted clusters
49+
include::modules/hcp-ibm-power-create-heterogeneous-nodepools-agent-hc-con.adoc[leveloffset=+1]
4850

51+
// Creating the AgentServiceConfig custom resource
4952
include::modules/hcp-ibm-power-create-heterogeneous-nodepools-agent-hc.adoc[leveloffset=+2]
5053

54+
// Create an agent cluster
5155
include::modules/hcp-ibm-power-heterogeneous-nodepools-create-agent-cluster.adoc[leveloffset=+2]
5256

57+
// Creating heterogeneous node pools
5358
include::modules/hcp-create-heterogeneous-nodepools.adoc[leveloffset=+2]
5459

60+
// DNS configuration for hosted control planes
5561
include::modules/hcp-ibm-power-heterogeneous-nodepools-agent-hc-dns.adoc[leveloffset=+2]
5662

63+
// Creating infrastructure environment resources
5764
include::modules/hcp-create-infraenv.adoc[leveloffset=+2]
5865

66+
// Adding agents to the heterogeneous cluster
5967
include::modules/hcp-adding-agents.adoc[leveloffset=+2]
6068

69+
// Scaling the node pool
6170
include::modules/hcp-scale-the-nodepool.adoc[leveloffset=+2]

modules/hcp-adding-agents.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
[id="hcp-adding-agents_{context}"]
77
= Adding agents to the heterogeneous cluster
88

9-
You add agents by manually configuring the machine to boot with a live ISO. You can download the live ISO and use it to boot a bare-metal node or a virtual machine. On boot, the node communicates with the `assisted-service` and registers as an agent in the same namespace as the `InfraEnv` resource. When each agent is created, you can optionally set its `installation_disk_id` and `hostname` parameters in the specifications. When you are done, approve it to indicate that the agent is ready for use.
9+
You add agents by manually configuring the machine to boot with a live ISO. You can download the live ISO and use it to boot a bare-metal node or a virtual machine. On boot, the node communicates with the `assisted-service` and registers as an agent in the same namespace as the `InfraEnv` resource. After the creation of each agent, you can optionally set its `installation_disk_id` and `hostname` parameters in the specifications. You can then approve the agent to indicate the agent as ready for use.
1010

1111
.Procedure
1212

1313
. Obtain a list of agents by running the following command:
1414
+
1515
[source,terminal]
1616
----
17-
oc -n <hosted_control_plane_namespace> get agents
17+
$ oc -n <hosted_control_plane_namespace> get agents
1818
----
1919
+
2020
.Example output
@@ -28,21 +28,21 @@ e57a637f-745b-496e-971d-1abbf03341ba auto-assign
2828
+
2929
[source,terminal]
3030
----
31-
oc -n <hosted_control_plane_namespace> patch agent 86f7ac75-4fc4-4b36-8130-40fa12602218 -p '{"spec":{"installation_disk_id":"/dev/sda","approved":true,"hostname":"worker-0.example.krnl.es"}}' --type merge
31+
$ oc -n <hosted_control_plane_namespace> patch agent 86f7ac75-4fc4-4b36-8130-40fa12602218 -p '{"spec":{"installation_disk_id":"/dev/sda","approved":true,"hostname":"worker-0.example.krnl.es"}}' --type merge
3232
----
3333

3434
. Patch the second agent by running the following command:
3535
+
3636
[source,terminal]
3737
----
38-
oc -n <hosted_control_plane_namespace> patch agent 23d0c614-2caa-43f5-b7d3-0b3564688baa -p '{"spec":{"installation_disk_id":"/dev/sda","approved":true,"hostname":"worker-1.example.krnl.es"}}' --type merge
38+
$ oc -n <hosted_control_plane_namespace> patch agent 23d0c614-2caa-43f5-b7d3-0b3564688baa -p '{"spec":{"installation_disk_id":"/dev/sda","approved":true,"hostname":"worker-1.example.krnl.es"}}' --type merge
3939
----
4040

4141
. Check the agent approval status by running the following command:
4242
+
4343
[source,terminal]
4444
----
45-
oc -n <hosted_control_plane_namespace> get agents
45+
$ oc -n <hosted_control_plane_namespace> get agents
4646
----
4747
+
4848
.Example output

modules/hcp-bm-hc.adoc

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,17 @@
88
[id="hcp-bm-hc_{context}"]
99
= Creating a hosted cluster on bare metal
1010

11-
When you create a hosted cluster with the Agent platform, HyperShift installs the Agent Cluster API provider in the hosted control plane namespace. You can create a hosted cluster on bare metal or import one.
11+
When you create a hosted cluster with the Agent platform, HyperShift Opertor installs the Agent Cluster API provider in the hosted control plane namespace. The Agent Cluster API provider connects a management cluster that hosts the control plane and a hosted cluster that consists of only the compute nodes.
12+
13+
You can create a hosted cluster on bare metal or import one.
1214

1315
As you create a hosted cluster, keep the following guidelines in mind:
1416

1517
- Each hosted cluster must have a cluster-wide unique name. A hosted cluster name cannot be the same as any existing managed cluster in order for {mce-short} to manage it.
1618
1719
- Do not use `clusters` as a hosted cluster name.
1820
19-
- A hosted cluster cannot be created in the namespace of a {mce-short} managed cluster.
21+
- You cannot create a hosted cluster in the namespace of a {mce-short} managed cluster.
2022
2123
- The most common service publishing strategy is to expose services through a load balancer. That strategy is the preferred method for exposing the Kubernetes API server. If you create a hosted cluster by using the web console or by using {rh-rhacm-title}, to set a publishing strategy for a service besides the Kubernetes API server, you must manually specify the `servicePublishingStrategy` information in the `HostedCluster` custom resource.
2224
@@ -49,17 +51,17 @@ $ hcp create cluster agent \
4951
--node-pool-replicas <node_pool_replica_count> <11>
5052
----
5153
+
52-
<1> Specify the name of your hosted cluster, for instance, `example`.
53-
<2> Specify the path to your pull secret, for example, `/user/name/pullsecret`.
54+
<1> Specify the name of your hosted cluster, such as `example`.
55+
<2> Specify the path to your pull secret, such as `/user/name/pullsecret`.
5456
<3> Specify your hosted control plane namespace, for example, `clusters-example`. Ensure that agents are available in this namespace by using the `oc get agent -n <hosted_control_plane_namespace>` command.
55-
<4> Specify your base domain, for example, `krnl.es`.
56-
<5> The `--api-server-address` flag defines the IP address that is used for the Kubernetes API communication in the hosted cluster. If you do not set the `--api-server-address` flag, you must log in to connect to the management cluster.
57-
<6> Specify the etcd storage class name, for example, `lvm-storageclass`.
57+
<4> Specify your base domain, such as `krnl.es`.
58+
<5> The `--api-server-address` flag defines the IP address that gets used for the Kubernetes API communication in the hosted cluster. If you do not set the `--api-server-address` flag, you must log in to connect to the management cluster.
59+
<6> Specify the etcd storage class name, such as `lvm-storageclass`.
5860
<7> Specify the path to your SSH public key. The default file path is `~/.ssh/id_rsa.pub`.
5961
<8> Specify your hosted cluster namespace.
6062
<9> Specify the availability policy for the hosted control plane components. Supported options are `SingleReplica` and `HighlyAvailable`. The default value is `HighlyAvailable`.
61-
<10> Specify the supported {product-title} version that you want to use, for example, `4.19.0-multi`. If you are using a disconnected environment, replace `<ocp_release_image>` with the digest image. To extract the {product-title} release image digest, see _Extracting the {product-title} release image digest_.
62-
<11> Specify the node pool replica count, for example, `3`. You must specify the replica count as `0` or greater to create the same number of replicas. Otherwise, no node pools are created.
63+
<10> Specify the supported {product-title} version that you want to use, such as `4.19.0-multi`. If you are using a disconnected environment, replace `<ocp_release_image>` with the digest image. To extract the {product-title} release image digest, see _Extracting the {product-title} release image digest_.
64+
<11> Specify the node pool replica count, such as `3`. You must specify the replica count as `0` or greater to create the same number of replicas. Otherwise, you do not created node pools.
6365

6466
+
6567
. After a few moments, verify that your hosted control plane pods are up and running by entering the following command:

modules/hcp-create-heterogeneous-nodepools.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[id="hcp-create-heterogeneous-nodepools_{context}"]
77
= Creating heterogeneous node pools
88

9-
You create heterogeneous node pools by using the `NodePool` custom resource (CR).
9+
You create heterogeneous node pools by using the `NodePool` custom resource (CR), so that you can optimize costs and performance by associating different workloads to specific hardware.
1010

1111
.Procedure
1212

@@ -40,4 +40,4 @@ spec:
4040
EOF
4141
----
4242
+
43-
<1> This selector block is selects the agents that match the specified label. To create a node pool of architecture `ppc64le` with zero replicas, specify `ppc64le`. This ensures that it selects only agents from `ppc64le` architecture when it scales.
43+
<1> The selector block selects the agents that match the specified label. To create a node pool of architecture `ppc64le` with zero replicas, specify `ppc64le`. This ensures that it selects only agents from `ppc64le` architecture when it scales.

modules/hcp-create-infraenv.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
[id="hcp-create-infraenv_{context}"]
77
= Creating infrastructure environment resources
88

9-
For heterogeneous node pools, you must create an `infraEnv` custom resource (CR) for each architecture. For example, for node pools with `x86_64` and `ppc64le` architectures, create an `InfraEnv` CR for `x86_64` and `ppc64le`.
9+
For heterogeneous node pools, you must create an `infraEnv` custom resource (CR) for each architecture. This configuration ensures that the correct architecture-specific operating system and boot artifacts get uses during the node provisioning process. For example, for node pools with `x86_64` and `ppc64le` architectures, create an `InfraEnv` CR for `x86_64` and `ppc64le`.
1010

1111
[NOTE]
1212
====
13-
Before proceeding, make sure that the operating system (OS) images for both `x86_64` and `ppc64le` architectures are added to the `AgentServiceConfig` resource. After this, you can use the `InfraEnv` resources to get the minimal ISO image.
13+
Before proceeding, make sure that you add the operating system (OS) images for both `x86_64` and `ppc64le` architectures to the `AgentServiceConfig` resource. After this, you can use the `InfraEnv` resources to get the minimal ISO image.
1414
====
1515

1616
.Procedure
@@ -36,7 +36,7 @@ EOF
3636
<1> The hosted cluster name.
3737
<2> The `x86_64` architecture.
3838
<3> The hosted control plane namespace.
39-
<4> The ssh public key.
39+
<4> The SSH public key.
4040

4141
. Create the `InfraEnv` resource with `ppc64le` architecture for heterogeneous node pools by running the following command:
4242
+
@@ -59,18 +59,18 @@ EOF
5959
<1> The hosted cluster name.
6060
<2> The `ppc64le` architecture.
6161
<3> The hosted control plane namespace.
62-
<4> The ssh public key.
62+
<4> The SSH public key.
6363

64-
. To verify that the `InfraEnv` resources are created successfully run the following commands:
64+
. Verify the successful creation of the `InfraEnv` resources run the following commands:
6565

66-
** Verify that the `x86_64` `InfraEnv` resource is created successfully:
66+
** Verify the successful creation of the `x86_64` `InfraEnv` resource:
6767
+
6868
[source,terminal]
6969
----
7070
$ oc describe InfraEnv <hosted_cluster_name>-<arch_x86>
7171
----
7272
+
73-
** Verify that the `ppc64le` `InfraEnv` resource is created successfully:
73+
** Verify the successful creation of the `ppc64le` `InfraEnv` resource:
7474
+
7575
[source,terminal]
7676
----

0 commit comments

Comments
 (0)