Managing hosted control planes on IBM Power¶
After you deploy hosted control planes on IBM Power, you can manage a hosted cluster.
Creating an InfraEnv resource for hosted control planes on IBM Power¶
An InfraEnv resource is an 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.
You can create an InfraEnv resource for hosted control planes on 64-bit x86 bare metal for IBM Power compute nodes.
Procedure
-
Create a YAML file to configure an
InfraEnvresource. See the following example:apiVersion: agent-install.openshift.io/v1beta1 kind: InfraEnv metadata: name: <hosted_cluster_name> namespace: <hosted_control_plane_namespace> spec: cpuArchitecture: ppc64le pullSecretRef: name: pull-secret sshAuthorizedKey: <path_to_ssh_public_key>metadata.namespecifies the name of your hosted cluster.metadata.namespacespecifies the name of the hosted control plane namespace, for example,clusters-hosted.spec.sshAuthorizedKeyspecifies the path to your SSH public key. The default file path is~/.ssh/id_rsa.pub.
-
Save the file as
infraenv-config.yaml. -
Apply the configuration by entering the following command:
-
To fetch the URL to download the live ISO, which allows IBM Power machines to join as agents, enter the following command:
Adding IBM Power agents to the InfraEnv resource¶
You can add agents by manually configuring the machine to start with the live ISO.
Procedure
-
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.isoDownloadURLfield in theInfraEnvresource. At startup, the host communicates with the Assisted Service and registers as an agent in the same namespace as theInfraEnvresource. -
To list the agents and some of their properties, enter the following command:
-
After each agent is created, you can optionally set the
installation_disk_idandhostnamefor an agent:-
To set the
installation_disk_idfield for an agent, enter the following command: -
To set the
hostnamefield for an agent, enter the following command:
-
Verification
-
To verify that the agents are approved for use, enter the following command:
Scaling the NodePool object for a hosted cluster on IBM Power¶
The NodePool object is created when you create a hosted cluster. By scaling the NodePool object, you can add more compute nodes to hosted control planes.
Procedure
-
Run the following command to scale the
NodePoolobject to two nodes:The Cluster API agent provider randomly picks two agents that are then assigned to the hosted cluster. Those agents go through different states and finally join the hosted cluster as OpenShift Container Platform nodes. The agents pass through the transition phases in the following order:
bindingdiscoveringinsufficientinstallinginstalling-in-progressadded-to-existing-cluster
-
Run the following command to see the status of a specific scaled agent:
-
Run the following command to see the transition phases:
-
Run the following command to generate the
kubeconfigfile to access the hosted cluster: -
After the agents reach the
added-to-existing-clusterstate, verify that you can see the OpenShift Container Platform nodes by entering the following command: -
Enter the following command to verify that two machines were created when you scaled up the
NodePoolobject:Example outputNAME CLUSTER NODENAME PROVIDERID PHASE AGE VERSION hosted-forwarder-79558597ff-5tbqp hosted-forwarder-crqq5 worker-zvm-0.hostedn.example.com agent://50c23cda-cedc-9bbd-bcf1-9b3a5c75804d Running 41h 4.15.0 hosted-forwarder-79558597ff-lfjfk hosted-forwarder-crqq5 worker-zvm-1.hostedn.example.com agent://5e498cd3-542c-e54f-0c58-ed43e28b568a Running 41h 4.15.0 -
Run the following command to check the cluster version:
-
Run the following command to check the Cluster Operator status:
For each component of your cluster, the output shows the following Cluster Operator statuses:
NAMEVERSIONAVAILABLEPROGRESSINGDEGRADEDSINCEMESSAGE
Additional resources