You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Agent-based Installer provides the flexibility of user-provided infrastructure (UPI) installation and the ease of use of the Assisted Installer (AI). It is a subcommand that resides in the {product-title} installer, and also uses the {product-title} installer for the input asset management.
11
-
It generates a bootable image containing all of the information required to deploy an {product-title} cluster.
12
11
13
-
The Agent-based Installer is a sub-command that generates a live {op-system-first} ISO. The live ISO runs all of the required components that are running in containers pulled from the {product-title} release payload.
12
+
The Agent-based installation method provides the flexibility to boot your on-premises servers in any way that you choose. It combines the ease of use of the Assisted Installation service with the ability to run offline, including in air-gapped environments.
13
+
Agent-based installation is a subcommand of the {product-title} installer.
14
+
It generates a bootable ISO image containing all of the information required to deploy an {product-title} cluster, with an available release image.
14
15
15
-
The Agent-based Installer also utilizes Zero Touch Provisioning (ZTP) custom resources. ZTP allows you to provision new edge sites with declarative configurations of bare-metal equipment.
16
+
The configuration is in the same format as for the installer-provisioned infrastructure and user-provisioned infrastructure installation methods.
17
+
The Agent-based Installer can also optionally generate or accept Zero Touch Provisioning (ZTP) custom resources. ZTP allows you to provision new edge sites with declarative configurations of bare-metal equipment.
Copy file name to clipboardExpand all lines: modules/agent-install-networking.adoc
+42-60Lines changed: 42 additions & 60 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,36 +6,33 @@
6
6
[id="agent-install-networking_{context}"]
7
7
= About networking
8
8
9
-
During the initial boot, the machines require an IP address configuration that is set either through a Dynamic Host Configuration Protocol(DHCP) server or statically by
10
-
selecting the below options. If you provide the IP address for the `rendezvousIP` field through the DHCP option, then ensure that it is for the machine's IP address that is going to be used for deployment.
11
-
This IP address is required for a node to be identified as ** node 0 **. A ** node 0 ** runs the required services for the Agent-based Installer.
9
+
The *rendezvous IP* must be known at the time of generating the agent ISO, so that during the initial boot all the hosts can check in to the assisted service.
10
+
If the IP addresses are assigned using a Dynamic Host Configuration Protocol (DHCP) server, then the `rendezvousIP` field must be set to an IP address of one of the hosts that will become part of the deployed control plane.
11
+
In an environment without a DHCP server, you can define IP addresses statically.
12
+
13
+
In addition to static IP addresses, you can apply any network configuration that is in NMState format. This includes VLANs and NIC bonds.
12
14
13
15
== DHCP
14
16
15
17
.Preferred method: `install-config.yaml` and `agent.config.yaml`
16
18
17
-
You must specify only the value for the `rendezvousIP` field and `networkConfig` field must be left blank:
19
+
You must specify the value for the `rendezvousIP` field. The `networkConfig` fields can be left blank:
18
20
19
21
.Sample agent-config.yaml.file
20
22
21
23
[source,yaml]
22
24
----
23
-
cat > agent-config.yaml << EOF
24
-
apiVersion: v1alpha1
25
-
kind: AgentConfig
26
-
metadata:
27
-
name: sno-cluster
28
-
rendezvousIP: 192.168.111.80 <1>
25
+
apiVersion: v1alpha1
26
+
kind: AgentConfig
27
+
metadata:
28
+
name: sno-cluster
29
+
rendezvousIP: 192.168.111.80 <1>
29
30
----
30
-
<1> The IP address for ** node 0**.
31
+
<1> The IP address for the rendezvous host.
31
32
32
33
== Static networking
33
34
34
35
.. Preferred method: `install-config.yaml` and `agent.config.yaml`
35
-
+
36
-
.Scenario-1
37
-
38
-
When you specify the value for the `rendezvousIP` and `networkConfig` fields, the `rendezvousIP` field is utilized.
39
36
40
37
+
41
38
.Sample agent-config.yaml.file
@@ -47,39 +44,12 @@ When you specify the value for the `rendezvousIP` and `networkConfig` fields, th
47
44
kind: AgentConfig
48
45
metadata:
49
46
name: sno-cluster
50
-
rendezvousIP: 192.168.111.80
51
-
hosts:
52
-
- hostname: master-0
53
-
interfaces:
54
-
- name: eno1
55
-
macAddress: 00:ef:44:21:e6:a5
56
-
networkConfig:
57
-
interfaces:
58
-
- name: eno1
59
-
type: ethernet
60
-
state: up
61
-
mac-address: 00:ef:44:21:e6:a5
62
-
ipv4:
63
-
enabled: true
64
-
address:
65
-
- ip: 192.168.111.80
66
-
prefix-length: 23
67
-
----
68
-
69
-
+
70
-
.Scenario-2
71
-
When you specify the values for the `networkConfig` field, the value from the `interfaces` field is utilized. This is when there is no `rendezvousIP` field.
72
-
+
73
-
[source,yaml]
74
-
----
75
-
cat > agent-config.yaml << EOF
76
-
apiVersion: v1alpha1
77
-
kind: AgentConfig
47
+
rendezvousIP: 192.168.111.80 <1>
78
48
hosts:
79
49
- hostname: master-0
80
50
interfaces:
81
51
- name: eno1
82
-
macAddress: 00:ef:44:21:e6:a5
52
+
macAddress: 00:ef:44:21:e6:a5 <2>
83
53
networkConfig:
84
54
interfaces:
85
55
- name: eno1
@@ -89,19 +59,32 @@ When you specify the values for the `networkConfig` field, the value from the `i
89
59
ipv4:
90
60
enabled: true
91
61
address:
92
-
- ip: 192.168.111.80 <1>
93
-
prefix-length: 23 <2>
62
+
- ip: 192.168.111.80 <3>
63
+
prefix-length: 23 <4>
64
+
dhcp: false
65
+
dns-resolver:
66
+
config:
67
+
server:
68
+
- 192.168.111.1 <5>
69
+
routes:
70
+
config:
71
+
- destination: 0.0.0.0/0
72
+
next-hop-address: 192.168.111.1 <6>
73
+
next-hop-interface: eth0
74
+
table-id: 254
94
75
----
95
-
<1> The static IP address of the target bare-metal host.
96
-
<2> The static IP address’s subnet prefix for the target bare-metal host.
97
-
+
98
-
Note that the lowest value IP is utilized for the IP address of ** node 0**.
76
+
<1> If a value is not specified for the `rendezvousIP` field, one address will be chosen from the static IP addresses specified in the `networkConfig` fields.
77
+
<2> The MAC address of an interface on the host, used to determine which host to apply the configuration to.
78
+
<3> The static IP address of the target bare metal host.
79
+
<4> The static IP address’s subnet prefix for the target bare metal host.
80
+
<5> The DNS server for the target bare metal host.
81
+
<6> Next hop address for the node traffic. This must be in the same subnet as the IP address set for the specified interface.
99
82
100
83
+
101
84
.. Optional method: ZTP manifests
102
85
103
86
+
104
-
The optional method of the ZTP custom resources comprises 6 custom resources; you can configure static IPs in the `NMStateConfig.yaml.file`.
87
+
The optional method of the ZTP custom resources comprises 6 custom resources; you can configure static IPs in the `nmstateconfig.yaml` file.
105
88
106
89
+
107
90
[source,yaml]
@@ -137,14 +120,13 @@ spec:
137
120
next-hop-interface: eth0
138
121
table-id: 254
139
122
interfaces:
140
-
- name: "eth0" <5>
141
-
macAddress: 52:54:01:aa:aa:a1 <6>
123
+
- name: eth0
124
+
macAddress: 52:54:01:aa:aa:a1 <5>
142
125
----
143
-
<1> The static IP address of the target bare-metal host.
144
-
<2> The static IP address’s subnet prefix for the target bare-metal host.
145
-
<3> The DNS server for the target bare-metal host.
126
+
<1> The static IP address of the target baremetal host.
127
+
<2> The static IP address’s subnet prefix for the target baremetal host.
128
+
<3> The DNS server for the target baremetal host.
146
129
<4> Next hop address for the node traffic. This must be in the same subnet as the IP address set for the specified interface.
147
-
<5> The `interfaces` field must have the same name.
148
-
<6> The mac address of the interface.
149
-
+
150
-
Note that the lowest value IP is utilized for the IP address of ** node 0**.
130
+
<5> The MAC address of an interface on the host, used to determine which host to apply the configuration to.
131
+
132
+
The rendezvous IP is chosen from the static IP addresses specified in the `config` fields.
Copy file name to clipboardExpand all lines: modules/installing-ocp-agent.adoc
+20-29Lines changed: 20 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ The following procedure deploys a single-node {product-title} in a disconnected
10
10
11
11
.Procedure
12
12
13
-
. Navigate to the link:https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/latest[OpenShift mirror site] and download the latest version of the tarball that matches your operating system.
13
+
. Navigate to the link:https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/latest[OpenShift mirror site] and download the latest version of the installer and client tarballs that match your operating system.
14
14
15
15
. Extract the binary by running the following command:
<1> This IP address is used to determine which node performs the bootstrapping process as well as running the `assisted-service` component.
165
-
You must provide the IP address when you do not specify the node's IP addresses in the `networkConfig` parameter. If this address is not provided, one IP address is selected from the provided nodes's `networkConfig`.
166
-
<2> The number of hosts defined must match the total number of hosts defined in the `install-config.yaml` file, which is the sum of the values of the `compute.replicas` and `controlPlane.replicas` parameters. When 3 master nodes and 0 worker nodes are defined in the `install-config.yaml` file,
167
-
the number of hosts defined is 3. When 3 master nodes and 2 worker nodes are defined in the `install-config.yaml` file, the number of hosts defined is 5.
165
+
You must provide the rendezvous IP address when you do not specify at least one host's IP address in the `networkConfig` parameter. If this address is not provided, one IP address is selected from the provided hosts' `networkConfig`.
166
+
<2> Host configuration is optional. The number of hosts defined must not exceed the total number of hosts defined in the `install-config.yaml` file, which is the sum of the values of the `compute.replicas` and `controlPlane.replicas` parameters.
168
167
<3> The optional `hostname` parameter overrides the hostname obtained from either the Dynamic Host Configuration Protocol (DHCP) or a reverse DNS lookup. Each host must have a unique hostname supplied by one of these methods.
169
168
<4> The `rootDeviceHints` parameter enables provisioning of the Red Hat Enterprise Linux CoreOS (RHCOS) image to a particular device. It examines the devices in the order it discovers them, and compares the discovered values with the hint values. It uses the first discovered device that matches the hint value.
170
169
<5> Set this optional parameter to configure the network interface of a host in NMState format.
171
170
172
171
+
173
-
. Create the Agent image by running the following command:
174
-
+
175
-
[NOTE]
176
-
====
177
-
Ensure that the image is created in the same path as the **auth** folder. You can verify this with the following command:
172
+
. Create the agent image by running the following command:
NOTE: Red Hat Enterprise Linux CoreOS (RHCOS) supports multipathing on the primary disk, allowing stronger resilience to hardware failure to achieve higher host availability. Multipathing is enabled by default in the `agent.iso` image, with a default `/etc/multipath.conf` configuration.
180
+
NOTE: Red Hat Enterprise Linux CoreOS (RHCOS) supports multipathing on the primary disk, allowing stronger resilience to hardware failure to achieve higher host availability. Multipathing is enabled by default in the agent ISO image, with a default `/etc/multipath.conf` configuration.
181
+
182
+
. Boot the `agent.x86_64.iso` image on the bare metal machines.
192
183
193
-
. Optional: To know when the bootstrap node (** node 0 **) reboots, run the following command:
184
+
. Optional: To know when the bootstrap host (which is the rendezvous host) reboots, run the following command:
Copy file name to clipboardExpand all lines: modules/sample-ztp-custom-resources.adoc
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Optional: You can use Zero touch provisioning (ZTP) custom resource (CR) objects
10
10
11
11
You can customize the following ZTP custom resources to specify more details about your {product-title} cluster. The following sample ZTP custom resources are for a single-node cluster.
12
12
13
-
**AgentClusterInstall.yaml**
13
+
*agent-cluster-install.yaml*
14
14
15
15
[source,yaml]
16
16
----
@@ -36,7 +36,7 @@ You can customize the following ZTP custom resources to specify more details abo
0 commit comments