Skip to content

Commit 58367da

Browse files
committed
updates for BZ2013994
1 parent d4c87d0 commit 58367da

File tree

1 file changed

+44
-34
lines changed

1 file changed

+44
-34
lines changed

modules/ztp-ai-install-ocp-clusters-on-bare-metal.adoc

Lines changed: 44 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
[id="enabling-assisted-installer-service-on-bare-metal_{context}"]
66
= Enabling assisted installer service on bare metal
77

8-
The Assisted Installer Service (AIS) deploys {product-title} clusters. {rh-rhacm-first} ships with AIS, which is deployed when the MultiClusterHub Operator is enabled on the {rh-rhacm} hub cluster.
8+
The Assisted Installer Service (AIS) deploys {product-title} clusters. {rh-rhacm-first} ships with AIS. AIS is deployed when you enable the MultiClusterHub Operator on the {rh-rhacm} hub cluster.
99

10-
For distributed units (DUs), {rh-rhacm} supports {product-title} deployments, which run on a single bare metal host. The single node cluster acts as both a control plane and a worker node. {rh-rhacm} supports single node deployments for {product-title} on top of a single bare-metal host.
10+
For distributed units (DUs), {rh-rhacm} supports {product-title} deployments that run on a single bare-metal host. The single node cluster acts as both a control plane and a worker node.
1111

1212
.Prerequisites
1313

@@ -25,50 +25,60 @@ For distributed units (DUs), {rh-rhacm} supports {product-title} deployments, wh
2525
$ oc patch hiveconfig hive --type merge -p '{"spec":{"targetNamespace":"hive","logLevel":"debug","featureGates":{"custom":{"enabled":["AlphaAgentInstallStrategy"]},"featureSet":"Custom"}}}'
2626
----
2727

28-
. Modify the `provisioning` resource to allow the bare metal operator to watch all namespaces:
28+
. Modify the `Provisioning` resource to allow the Bare Metal Operator to watch all namespaces:
2929
+
3030
[source,terminal]
3131
----
3232
$ oc patch provisioning provisioning-configuration --type merge -p '{"spec":{"watchAllNamespaces": true }}'
3333
----
3434

35-
. Create and save the `AgentServiceConfig` custom resource file containing this YAML:
35+
. Create the `AgentServiceConfig` CR.
36+
37+
.. Save the following YAML in the `agent_service_config.yaml` file:
3638
+
3739
[source,yaml]
3840
----
39-
kind: AgentServiceConfig
40-
metadata:
41-
name: agent
42-
namespace: assisted-installer
43-
spec:
44-
databaseStorage:
45-
volumeName: <db_pv_name> <1>
46-
accessModes:
47-
- ReadWriteOnce
48-
resources:
49-
requests:
50-
storage: <db_storage_size> <2>
51-
filesystemStorage:
52-
volumeName: <fs_pv-name> <3>
53-
accessModes:
54-
- ReadWriteOnce
55-
resources:
56-
requests:
57-
storage: <fs_storage_size> <4>
58-
osImages:
59-
- openshiftVersion: <ocp_version> <5>
60-
rootfs: <rootfs_url> <6>
61-
url: <iso_url> <7>
41+
apiVersion: agent-install.openshift.io/v1beta1
42+
kind: AgentServiceConfig
43+
metadata:
44+
name: agent
45+
spec:
46+
databaseStorage:
47+
accessModes:
48+
- ReadWriteOnce
49+
resources:
50+
requests:
51+
storage: <db_volume_size> <1>
52+
filesystemStorage:
53+
accessModes:
54+
- ReadWriteOnce
55+
resources:
56+
requests:
57+
storage: <fs_volume_size> <2>
58+
osImages: <3>
59+
- openshiftVersion: "<ocp_version>" <4>
60+
version: "<ocp_release_version>" <5>
61+
url: "<iso_url>" <6>
62+
rootFSUrl: "<root_fs_url>" <7>
63+
cpuArchitecture: "x86_64"
6264
----
63-
<1> The `PersistentVolume` name to use for database storage.
64-
<2> Volume size of the `db_pv_name` `PersistentVolume`.
65-
<3> The `PersistentVolume` name to use for file system storage.
66-
<4> Volume size of the `fs_pv_name` `PersistentVolume`.
67-
<5> {product-title} version to boot the single node clusters.
65+
<1> Volume size for the `databaseStorage` field, for example `10Gi`.
66+
<2> Volume size for the `filesystemStorage` field, for example `20Gi`.
67+
<3> List of OS image details. Example describes a single {product-title} OS version.
68+
<4> {product-title} version to install, for example, `4.8`.
69+
<5> Specific install version, for example, `47.83.202103251640-0`.
70+
<6> ISO url, for example, `https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.7/4.7.7/rhcos-4.7.7-x86_64-live.x86_64.iso`.
71+
<7> Root FS image URL, for example, `https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.7/4.7.7/rhcos-live-rootfs.x86_64.img`
6872

69-
. Create the `AgentServiceConfig` object from the file:
73+
.. Create the `AgentServiceConfig` CR by running the following command:
74+
+
75+
[source,terminal]
76+
----
77+
$ oc create -f agent_service_config.yaml
78+
----
7079
+
80+
.Example output
7181
[source,terminal]
7282
----
73-
$ oc create -f <file-name>.yaml
83+
agentserviceconfig.agent-install.openshift.io/agent created
7484
----

0 commit comments

Comments
 (0)