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.
-
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:
$ oc apply -f infraenv-config.yaml -
To fetch the URL to download the live ISO, which allows IBM Power machines to join as agents, enter the following command:
$ oc -n <hosted_control_plane_namespace> get InfraEnv <hosted_cluster_name> \ -o json