mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 21:46:22 +01:00
54 lines
2.1 KiB
Plaintext
54 lines
2.1 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * hosted_control_planes/hcp-deploy/hcp-deploy-ibm-power.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="hcp-adding-agents_{context}"]
|
|
= Adding agents to the heterogeneous cluster
|
|
|
|
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.
|
|
|
|
.Procedure
|
|
|
|
. Obtain a list of agents by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc -n <hosted_control_plane_namespace> get agents
|
|
----
|
|
+
|
|
.Example output
|
|
----
|
|
NAME CLUSTER APPROVED ROLE STAGE
|
|
86f7ac75-4fc4-4b36-8130-40fa12602218 auto-assign
|
|
e57a637f-745b-496e-971d-1abbf03341ba auto-assign
|
|
----
|
|
|
|
. Patch an agent by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ 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
|
|
----
|
|
|
|
. Patch the second agent by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ 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
|
|
----
|
|
|
|
. Check the agent approval status by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc -n <hosted_control_plane_namespace> get agents
|
|
----
|
|
+
|
|
.Example output
|
|
----
|
|
NAME CLUSTER APPROVED ROLE STAGE
|
|
86f7ac75-4fc4-4b36-8130-40fa12602218 true auto-assign
|
|
e57a637f-745b-496e-971d-1abbf03341ba true auto-assign
|
|
----
|