Skip to content

Commit 209b1af

Browse files
authored
Merge pull request #81599 from xenolinux/hcp-migrate-ibm-power
OSDOCS#11006: Migrating HCP docs for IBM power from ACM to OCP
2 parents 1f1e2aa + c7bfd31 commit 209b1af

10 files changed

+379
-7
lines changed

hosted_control_planes/hcp-deploy/hcp-deploy-ibmpower.adoc

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,38 @@ include::_attributes/common-attributes.adoc[]
55
:context: hcp-deploy-ibmpower
66

77
toc::[]
8+
9+
You can deploy hosted control planes 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.
10+
11+
[NOTE]
12+
====
13+
The _management_ cluster is not the _managed_ cluster. A managed cluster is a cluster that the hub cluster manages.
14+
====
15+
16+
The {mce-short} version 2.5 supports only the default `local-cluster`, which is a hub cluster that is managed, and the hub cluster as the hosting cluster.
17+
18+
:Featurename: {hcp-capital} on {ibm-power-title}
19+
include::snippets/technology-preview.adoc[]
20+
21+
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".
22+
23+
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.
24+
25+
When you create a hosted cluster with the Agent platform, HyperShift installs the Agent Cluster API provider in the hosted control plane namespace.
26+
27+
include::modules/hcp-ibmpower-prereqs.adoc[leveloffset=+1]
28+
29+
[role="_additional-resources"]
30+
.Additional resources
31+
32+
* link:https://docs.redhat.com/en/documentation/red_hat_advanced_cluster_management_for_kubernetes/2.11/html/clusters/cluster_mce_overview#advanced-config-engine[Advanced configuration]
33+
* link:https://docs.redhat.com/en/documentation/red_hat_advanced_cluster_management_for_kubernetes/2.11/html/clusters/cluster_mce_overview#enable-cim[Enabling the central infrastructure management service]
34+
* xref:../../hosted_control_planes/hcp-prepare/hcp-cli.adoc#hcp-cli-terminal_hcp-cli[Installing the {hcp} command-line interface]
35+
* xref:../../hosted_control_planes/hcp-prepare/hcp-enable-disable.adoc#hcp-enable-manual_hcp-enable-disable[Manually enabling the {hcp} feature]
36+
* xref:../../hosted_control_planes/hcp-prepare/hcp-enable-disable.adoc#hcp-disable_hcp-enable-disable[Disabling the {hcp} feature]
37+
38+
include::modules/hcp-ibmpower-infra-reqs.adoc[leveloffset=+1]
39+
40+
include::modules/hcp-ibmpower-dns.adoc[leveloffset=+1]
41+
42+
include::modules/hcp-bm-hc.adoc[leveloffset=+1]

hosted_control_planes/hcp-deploy/hcp-deploy-ibmz.adoc

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

77
toc::[]
88

9-
You can deploy {hcp} by configuring a cluster to function as a management cluster. The management cluster is the {product-title} cluster where the control planes are hosted. The management cluster is also known as the _hosting_ cluster.
9+
You can deploy {hcp} by configuring a cluster to function as a management cluster. The management cluster is the {product-title} cluster where the control planes are hosted. The management cluster is also known as the _hosting_ 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-
You can convert a managed cluster to a management cluster by using the `hypershift` add-on to deploy the HyperShift Operator on that cluster. Then, you can start to create the hosted cluster.
16+
You can convert a managed cluster to a management cluster by using the `hypershift` add-on to deploy the HyperShift Operator on that cluster. Then, you can start to create the hosted cluster.
1717

1818
The {mce-short} 2.5 supports only the default `local-cluster`, which is a hub cluster that is managed, and the hub cluster as the management cluster.
1919

@@ -33,7 +33,7 @@ include::modules/hcp-ibmz-prereqs.adoc[leveloffset=+1]
3333

3434
* link:https://docs.redhat.com/en/documentation/red_hat_advanced_cluster_management_for_kubernetes/2.11/html/clusters/cluster_mce_overview#advanced-config-engine[Advanced configuration]
3535
* link:https://docs.redhat.com/en/documentation/red_hat_advanced_cluster_management_for_kubernetes/2.11/html/clusters/cluster_mce_overview#enable-cim[Enabling the central infrastructure management service]
36-
// * Installing the hosted control plane command line interface
36+
* xref:../../hosted_control_planes/hcp-prepare/hcp-cli.adoc#hcp-cli-terminal_hcp-cli[Installing the {hcp} command-line interface]
3737
* xref:../../hosted_control_planes/hcp-prepare/hcp-enable-disable.adoc[Enabling or disabling the {hcp} feature]
3838
3939
include::modules/hcp-ibmz-infra-reqs.adoc[leveloffset=+1]
@@ -50,7 +50,7 @@ include::modules/hcp-ibmz-infraenv.adoc[leveloffset=+1]
5050
[id="hcp-ibmz-add-agents"]
5151
== Adding {ibm-z-title} agents to the InfraEnv resource
5252

53-
To attach compute nodes to a hosted control plane, create agents that help you to scale the node pool. Adding agents in an {ibm-z-title} environment requires additional steps, which are described in detail in this section.
53+
To attach compute nodes to a hosted control plane, create agents that help you to scale the node pool. Adding agents in an {ibm-z-title} environment requires additional steps, which are described in detail in this section.
5454

5555
Unless stated otherwise, these procedures apply to both z/VM and RHEL KVM installations on {ibm-z-title} and {ibm-linuxone-title}.
5656

@@ -69,4 +69,4 @@ include::modules/hcp-ibmz-scale-np.adoc[leveloffset=+1]
6969
[role="_additional-resources"]
7070
.Additional resources
7171

72-
* xref:../../installing/installing_ibm_z/installing-ibm-z.adoc#installation-operators-config[Initial Operator configuration]
72+
* xref:../../installing/installing_ibm_z/installing-ibm-z.adoc#installation-operators-config[Initial Operator configuration]

hosted_control_planes/hcp-manage/hcp-manage-ibmpower.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,17 @@ include::_attributes/common-attributes.adoc[]
55
:context: hcp-manage-ibmpower
66

77
toc::[]
8+
9+
After you deploy {hcp} on {ibm-power-title}, you can manage a hosted cluster by completing the following tasks.
10+
11+
include::modules/hcp-ibmpower-infraenv.adoc[leveloffset=+1]
12+
13+
include::modules/hcp-ibmpower-add-agents.adoc[leveloffset=+1]
14+
15+
include::modules/hcp-ibmpower-scale-np.adoc[leveloffset=+1]
16+
17+
[role="_additional-resources"]
18+
.Additional resources
19+
20+
* xref:../../installing/installing_ibm_z/installing-ibm-z.adoc#installation-operators-config[Initial Operator configuration]
21+
* xref:../../hosted_control_planes/hcp-troubleshooting.adoc#scale-down-data-plane_hcp-troubleshooting[Scaling down the data plane to zero]

modules/hcp-bm-hc.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//
33
// * hosted_control_planes/hcp-deploy/hcp-deploy-bm.adoc
44
// * hosted_control_planes/hcp-deploy/hcp-deploy-ibmz.adoc
5+
// * hosted_control_planes/hcp-deploy/hcp-deploy-ibmpower.adoc
56

67
:_mod-docs-content-type: PROCEDURE
78
[id="hcp-bm-hc_{context}"]
@@ -63,11 +64,12 @@ $ hcp create cluster agent \
6364
$ oc -n <hosted_control_plane_namespace> get pods
6465
----
6566
+
66-
.Example
67+
.Example output
68+
[source,terminal]
6769
----
6870
NAME READY STATUS RESTARTS AGE
6971
capi-provider-7dcf5fc4c4-nr9sq 1/1 Running 0 4m32s
7072
catalog-operator-6cd867cc7-phb2q 2/2 Running 0 2m50s
7173
certified-operators-catalog-884c756c4-zdt64 1/1 Running 0 2m51s
7274
cluster-api-f75d86f8c-56wfz 1/1 Running 0 4m32s
73-
----
75+
----

modules/hcp-ibmpower-add-agents.adoc

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * hosted_control_planes/hcp-manage/hcp-manage-ibmpower.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="hcp-ibmpower-add-agents_{context}"]
7+
= Adding {ibm-power-title} agents to the InfraEnv resource
8+
9+
You can add agents by manually configuring the machine to start with the live ISO.
10+
11+
.Procedure
12+
13+
. Download the live ISO and use it to start a bare metal or a virtual machine (VM) host. You can find the URL for the live ISO in the `status.isoDownloadURL` field, in the `InfraEnv` resource. At startup, the host communicates with the Assisted Service and registers as an agent in the same namespace as the `InfraEnv` resource.
14+
15+
. To list the agents and some of their properties, enter the following command:
16+
+
17+
[source,terminal]
18+
----
19+
$ oc -n <hosted_control_plane_namespace> get agents
20+
----
21+
+
22+
.Example output
23+
[source,terminal]
24+
----
25+
NAME CLUSTER APPROVED ROLE STAGE
26+
86f7ac75-4fc4-4b36-8130-40fa12602218 auto-assign
27+
e57a637f-745b-496e-971d-1abbf03341ba auto-assign
28+
----
29+
30+
. After each agent is created, you can optionally set the `installation_disk_id` and `hostname` for an agent:
31+
32+
.. To set the `installation_disk_id` field for an agent, enter the following command:
33+
+
34+
[source,terminal]
35+
----
36+
$ oc -n <hosted_control_plane_namespace> patch agent <agent_name> -p '{"spec":{"installation_disk_id":"<installation_disk_id>","approved":true}}' --type merge
37+
----
38+
39+
.. To set the `hostname` field for an agent, enter the following command:
40+
+
41+
[source,terminal]
42+
----
43+
$ oc -n <hosted_control_plane_namespace> patch agent <agent_name> -p '{"spec":{"hostname":"<hostname>","approved":true}}' --type merge
44+
----
45+
46+
.Verification
47+
48+
* To verify that the agents are approved for use, enter the following command:
49+
+
50+
[source,terminal]
51+
----
52+
$ oc -n <hosted_control_plane_namespace> get agents
53+
----
54+
+
55+
.Example output
56+
[source,terminal]
57+
----
58+
NAME CLUSTER APPROVED ROLE STAGE
59+
86f7ac75-4fc4-4b36-8130-40fa12602218 true auto-assign
60+
e57a637f-745b-496e-971d-1abbf03341ba true auto-assign
61+
----

modules/hcp-ibmpower-dns.adoc

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * hosted_control_planes/hcp-deploy/hcp-deploy-ibmpower.adoc
4+
5+
:_mod-docs-content-type: CONCEPT
6+
[id="hcp-ibmpower-dns_{context}"]
7+
= DNS configuration for {hcp} on {ibm-power-title}
8+
9+
The API server for the hosted cluster is exposed. A DNS entry must exist for the `api.<hosted_cluster_name>.<basedomain>` entry that points to the destination where the API server is reachable.
10+
11+
The DNS entry can be as simple as a record that points to one of the nodes in the managed cluster that is running the hosted control plane.
12+
13+
The entry can also point to a load balancer that is deployed to redirect incoming traffic to the ingress pods.
14+
15+
See the following example of a DNS configuration:
16+
17+
[source,terminal]
18+
----
19+
$ cat /var/named/<example.krnl.es.zone>
20+
----
21+
22+
.Example output
23+
[source,terminal]
24+
----
25+
$ TTL 900
26+
@ IN SOA bastion.example.krnl.es.com. hostmaster.example.krnl.es.com. (
27+
2019062002
28+
1D 1H 1W 3H )
29+
IN NS bastion.example.krnl.es.com.
30+
;
31+
;
32+
api IN A 1xx.2x.2xx.1xx <1>
33+
api-int IN A 1xx.2x.2xx.1xx
34+
;
35+
;
36+
*.apps.<hosted-cluster-name>.<basedomain> IN A 1xx.2x.2xx.1xx
37+
;
38+
;EOF
39+
----
40+
<1> The record refers to the IP address of the API load balancer that handles ingress and egress traffic for {hcp}.
41+
42+
For {ibm-power-title}, add IP addresses that correspond to the IP address of the agent.
43+
44+
.Example configuration
45+
[source,terminal]
46+
----
47+
compute-0 IN A 1xx.2x.2xx.1yy
48+
compute-1 IN A 1xx.2x.2xx.1yy
49+
----

modules/hcp-ibmpower-infra-reqs.adoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * hosted_control_planes/hcp-deploy/hcp-deploy-ibmpower.adoc
4+
5+
:_mod-docs-content-type: CONCEPT
6+
[id="hcp-ibmpower-infra-reqs_{context}"]
7+
= {ibm-power-title} infrastructure requirements
8+
9+
The Agent platform does not create any infrastructure, but requires the following resources for infrastructure:
10+
11+
* Agents: An _Agent_ represents a host that is booted with a discovery image and is ready to be provisioned as an {product-title} node.
12+
13+
* DNS: The API and Ingress endpoints must be routable.

modules/hcp-ibmpower-infraenv.adoc

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * hosted_control_planes/hcp-manage/hcp-manage-ibmpower.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="hcp-ibmpower-infraenv_{context}"]
7+
= Creating an InfraEnv resource for {hcp} on {ibm-power-title}
8+
9+
An `InfraEnv` is a environment where hosts that are starting the live ISO can join as agents. In this case, the agents are created in the same namespace as your hosted control plane.
10+
11+
You can create an `InfraEnv` resource for {hcp} on 64-bit x86 bare metal for {ibm-power-title} compute nodes.
12+
13+
.Procedure
14+
15+
. Create a YAML file to configure an `InfraEnv` resource. See the following example:
16+
+
17+
[source,yaml]
18+
----
19+
apiVersion: agent-install.openshift.io/v1beta1
20+
kind: InfraEnv
21+
metadata:
22+
name: <hosted_cluster_name> \// <1>
23+
namespace: <hosted_control_plane_namespace> \// <2>
24+
spec:
25+
cpuArchitecture: ppc64le
26+
pullSecretRef:
27+
name: pull-secret
28+
sshAuthorizedKey: <path_to_ssh_public_key> <3>
29+
----
30+
<1> Replace `<hosted_cluster_name>` with the name of your hosted cluster.
31+
<2> Replace `<hosted_control_plane_namespace>` with the name of the hosted control plane namespace, for example, `clusters-hosted`.
32+
<3> Replace `<path_to_ssh_public_key>` with the path to your SSH public key. The default file path is `~/.ssh/id_rsa.pub`.
33+
34+
35+
. Save the file as `infraenv-config.yaml`.
36+
37+
. Apply the configuration by entering the following command:
38+
+
39+
[source,terminal]
40+
----
41+
$ oc apply -f infraenv-config.yaml
42+
----
43+
44+
. To fetch the URL to download the live ISO, which allows {ibm-power-title} machines to join as agents, enter the following command:
45+
+
46+
[source,terminal]
47+
----
48+
$ oc -n <hosted_control_plane_namespace> get InfraEnv <hosted_cluster_name> -o json
49+
----

modules/hcp-ibmpower-prereqs.adoc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * hosted_control_planes/hcp-deploy/hcp-deploy-ibmpower.adoc
4+
5+
:_mod-docs-content-type: CONCEPT
6+
[id="hcp-ibmpower-prereqs_{context}"]
7+
= Prerequisites to configure {hcp} on {ibm-power-title}
8+
9+
* The {mce} version 2.5 and later installed on an {product-title} cluster. The {mce-short} is automatically installed when you install {rh-rhacm-first}. You can also install the {mce-short} without {rh-rhacm} as an Operator from the {product-title} OperatorHub.
10+
11+
* The {mce-short} must have at least one managed {product-title} cluster. The `local-cluster` managed hub cluster is automatically imported in the {mce-short} version 2.5 and later. For more information about `local-cluster`, see _Advanced configuration_ in the {rh-rhacm} documentation. You can check the status of your hub cluster by running the following command:
12+
+
13+
[source,terminal]
14+
----
15+
$ oc get managedclusters local-cluster
16+
----
17+
18+
* You need a hosting cluster with at least 3 worker nodes to run the HyperShift Operator.
19+
20+
* You need to enable the central infrastructure management service. For more information, see "Enabling the central infrastructure management service".
21+
22+
* You need to install the hosted control plane command-line interface. For more information, see "Installing the hosted control plane command-line interface".
23+
24+
The {hcp} feature is enabled by default. If you disabled the feature and want to manually enable it, see "Manually enabling the {hcp} feature". If you need to disable the feature, see "Disabling the {hcp} feature".

0 commit comments

Comments
 (0)