1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/hcp-ibm-power-infraenv.adoc
Martin Gencur f281db32b6 OCPBUGS-53162: Long command-line prompts not visible
This commit break long command-line prompts into multiple lines so that
the command is visible without scrolling.
2025-03-18 15:10:22 +00:00

51 lines
1.7 KiB
Plaintext

// Module included in the following assemblies:
//
// * hosted_control_planes/hcp-manage/hcp-manage-ibm-power.adoc
:_mod-docs-content-type: PROCEDURE
[id="hcp-ibm-power-infraenv_{context}"]
= Creating an InfraEnv resource for {hcp} on {ibm-power-title}
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.
You can create an `InfraEnv` resource for {hcp} on 64-bit x86 bare metal for {ibm-power-title} compute nodes.
.Procedure
. Create a YAML file to configure an `InfraEnv` resource. See the following example:
+
[source,yaml]
----
apiVersion: agent-install.openshift.io/v1beta1
kind: InfraEnv
metadata:
name: <hosted_cluster_name> \// <1>
namespace: <hosted_control_plane_namespace> \// <2>
spec:
cpuArchitecture: ppc64le
pullSecretRef:
name: pull-secret
sshAuthorizedKey: <path_to_ssh_public_key> <3>
----
<1> Replace `<hosted_cluster_name>` with the name of your hosted cluster.
<2> Replace `<hosted_control_plane_namespace>` with the name of the hosted control plane namespace, for example, `clusters-hosted`.
<3> Replace `<path_to_ssh_public_key>` with 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:
+
[source,terminal]
----
$ oc apply -f infraenv-config.yaml
----
. To fetch the URL to download the live ISO, which allows {ibm-power-title} machines to join as agents, enter the following command:
+
[source,terminal]
----
$ oc -n <hosted_control_plane_namespace> get InfraEnv <hosted_cluster_name> \
-o json
----