Skip to content

Commit 9ec9049

Browse files
authored
Merge pull request #71809 from mburke5678/71324-2
GH#51152: document Single Node OKD
2 parents 5dc47f7 + e024006 commit 9ec9049

11 files changed

+200
-3
lines changed

_attributes/common-attributes.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ endif::[]
180180
:quay: Red Hat Quay
181181
:sno: single-node OpenShift
182182
:sno-caps: Single-node OpenShift
183+
:sno-okd: single-node OKD
184+
:sno-caps-okd: Single-node OKD
183185
//TALO and Redfish events Operators
184186
:cgu-operator-first: Topology Aware Lifecycle Manager (TALM)
185187
:cgu-operator-full: Topology Aware Lifecycle Manager

_topic_maps/_topic_map.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ Topics:
363363
File: installation-config-parameters-agent
364364
- Name: Installing on a single node
365365
Dir: installing_sno
366-
Distros: openshift-enterprise
366+
Distros: openshift-enterprise,openshift-origin
367367
Topics:
368368
- Name: Preparing to install OpenShift on a single node
369369
File: install-sno-preparing-to-install-sno

installing/installing_sno/install-sno-installing-sno.adoc

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ include::_attributes/common-attributes.adoc[]
66

77
toc::[]
88

9-
You can install {sno} using the web-based Assisted Installer and a discovery ISO that you generate using the Assisted Installer. You can also install {sno} by using `coreos-installer` to generate the installation ISO.
10-
119
ifndef::openshift-origin[]
10+
You can install {sno} using the web-based Assisted Installer and a discovery ISO that you generate using the Assisted Installer. You can also install {sno} by using `coreos-installer` to generate the installation ISO.
1211

1312
[id="installing-sno-assisted-installer"]
1413
== Installing {sno} using the Assisted Installer
@@ -26,18 +25,40 @@ include::modules/install-sno-generating-the-discovery-iso-with-the-assisted-inst
2625
* xref:../../virt/about_virt/about-virt.adoc#virt-what-you-can-do-with-virt_about-virt[What you can do with OpenShift Virtualization]
2726

2827
include::modules/install-sno-installing-with-the-assisted-installer.adoc[leveloffset=+2]
28+
endif::openshift-origin[]
29+
30+
ifdef::openshift-origin[]
31+
You can install {sno-okd} using the Assisted Service or you can generate an installation ISO using `openshift-installer`.
32+
33+
[id="installing-sno-assisted-installer"]
34+
== Installing {sno-okd} using the Assisted Service
35+
36+
To install {sno-okd} with the Assisted Service, please refer to the following documentation:
37+
* link:https://github.com/openshift/assisted-service/tree/master/deploy/podman#okd-configuration[Install OKD using Assisted Service]
38+
endif::openshift-origin[]
2939

3040
[role="_additional-resources"]
3141
.Additional resources
3242

3343
* xref:../../installing/installing_sno/install-sno-installing-sno.adoc#installing-with-usb-media_install-sno-installing-sno-with-the-assisted-installer[Creating a bootable ISO image on a USB drive]
44+
45+
ifndef::openshift-origin[]
3446
* xref:../../installing/installing_sno/install-sno-installing-sno.adoc#install-booting-from-an-iso-over-http-redfish_install-sno-installing-sno-with-the-assisted-installer[Booting from an HTTP-hosted ISO image using the Redfish API]
3547
* xref:../../nodes/nodes/nodes-sno-worker-nodes.adoc#nodes-sno-worker-nodes[Adding worker nodes to {sno} clusters]
48+
endif::openshift-origin[]
3649

50+
ifdef::openshift-origin[]
51+
* xref:../../nodes/nodes/nodes-sno-worker-nodes.adoc#nodes-sno-worker-nodes[Adding worker nodes to {sno-okd} clusters]
3752
endif::openshift-origin[]
3853

54+
ifndef::openshift-origin[]
3955
[id="install-sno-installing-sno-manually"]
4056
== Installing {sno} manually
57+
endif::openshift-origin[]
58+
ifdef::openshift-origin[]
59+
[id="install-sno-installing-sno-manually"]
60+
== Installing {sno-okd} manually
61+
endif::openshift-origin[]
4162

4263
To install {product-title} on a single node, first generate the installation ISO, and then boot the server from the ISO. You can monitor the installation using the `openshift-install` installation program.
4364

@@ -55,11 +76,22 @@ include::modules/install-sno-monitoring-the-installation-manually.adoc[leveloffs
5576
.Additional resources
5677

5778
* xref:../../installing/installing_sno/install-sno-installing-sno.adoc#installing-with-usb-media_install-sno-installing-sno-with-the-assisted-installer[Creating a bootable ISO image on a USB drive]
79+
ifndef::openshift-origin[]
5880
* xref:../../installing/installing_sno/install-sno-installing-sno.adoc#install-booting-from-an-iso-over-http-redfish_install-sno-installing-sno-with-the-assisted-installer[Booting from an HTTP-hosted ISO image using the Redfish API]
81+
endif::openshift-origin[]
82+
ifndef::openshift-origin[]
5983
* xref:../../nodes/nodes/nodes-sno-worker-nodes.adoc#nodes-sno-worker-nodes[Adding worker nodes to {sno} clusters]
6084

6185
[id="install-sno-installing-sno-on-cloud-providers"]
6286
== Installing {sno} on cloud providers
87+
endif::openshift-origin[]
88+
89+
ifdef::openshift-origin[]
90+
* xref:../../nodes/nodes/nodes-sno-worker-nodes.adoc#nodes-sno-worker-nodes[Adding worker nodes to {sno-okd} clusters]
91+
92+
[id="install-sno-installing-sno-on-cloud-providers"]
93+
== Installing {sno-okd} on cloud providers
94+
endif::openshift-origin[]
6395

6496
include::modules/install-sno-additional-requirements-for-installing-sno-on-a-cloud-provider.adoc[leveloffset=+2]
6597

@@ -89,6 +121,7 @@ include::modules/install-sno-installing-sno-on-gcp.adoc[leveloffset=+2]
89121

90122
include::modules/install-sno-installing-with-usb-media.adoc[leveloffset=+1]
91123

124+
ifndef::openshift-origin[]
92125
include::modules/install-booting-from-an-iso-over-http-redfish.adoc[leveloffset=+1]
93126

94127
include::modules/creating-custom-live-rhcos-iso.adoc[leveloffset=+1]
@@ -153,3 +186,4 @@ You can use dedicated or shared IFLs to assign sufficient compute resources. Res
153186
include::modules/setting-up-bastion-for-sno.adoc[leveloffset=+2]
154187

155188
include::modules/install-sno-ibm-power.adoc[leveloffset=+2]
189+
endif::openshift-origin[]

modules/install-sno-about-installing-on-a-single-node.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@
88

99
You can create a single-node cluster with standard installation methods. {product-title} on a single node is a specialized installation that requires the creation of a special Ignition configuration file. The primary use case is for edge computing workloads, including intermittent connectivity, portable clouds, and 5G radio access networks (RAN) close to a base station. The major tradeoff with an installation on a single node is the lack of high availability.
1010

11+
ifndef::openshift-origin[]
1112
[IMPORTANT]
1213
====
1314
The use of OpenShiftSDN with {sno} is not supported. OVN-Kubernetes is the default network plugin for {sno} deployments.
1415
====
16+
endif::openshift-origin[]
17+
ifdef::openshift-origin[]
18+
[IMPORTANT]
19+
====
20+
The use of OpenShiftSDN with {sno-okd} is not supported. OVN-Kubernetes is the default network plugin for {sno-okd} deployments.
21+
====
22+
endif::openshift-origin[]

modules/install-sno-additional-requirements-for-installing-sno-on-a-cloud-provider.adoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,24 @@
44

55
:_mod-docs-content-type: CONCEPT
66
[id="additional-requirements-for-installing-sno-on-a-cloud-provider_{context}"]
7+
ifndef::openshift-origin[]
78
= Additional requirements for installing {sno} on a cloud provider
89

910
The documentation for installer-provisioned installation on cloud providers is based on a high availability cluster consisting of three control plane nodes. When referring to the documentation, consider the differences between the requirements for a {sno} cluster and a high availability cluster.
1011

1112
* A high availability cluster requires a temporary bootstrap machine, three control plane machines, and at least two compute machines. For a {sno} cluster, you need only a temporary bootstrap machine and one cloud instance for the control plane node and no worker nodes.
1213
1314
* The minimum resource requirements for high availability cluster installation include a control plane node with 4 vCPUs and 100GB of storage. For a {sno} cluster, you must have a minimum of 8 vCPU cores and 120GB of storage.
15+
endif::openshift-origin[]
16+
ifdef::openshift-origin[]
17+
= Additional requirements for installing {sno-okd} on a cloud provider
18+
19+
The documentation for installer-provisioned installation on cloud providers is based on a high availability cluster consisting of three control plane nodes. When referring to the documentation, consider the differences between the requirements for a {sno-okd} cluster and a high availability cluster.
20+
21+
* A high availability cluster requires a temporary bootstrap machine, three control plane machines, and at least two compute machines. For a {sno-okd} cluster, you need only a temporary bootstrap machine and one cloud instance for the control plane node and no worker nodes.
22+
23+
* The minimum resource requirements for high availability cluster installation include a control plane node with 4 vCPUs and 100GB of storage. For a {sno-okd} cluster, you must have a minimum of 8 vCPU cores and 120GB of storage.
24+
endif::openshift-origin[]
1425
1526
* The `controlPlane.replicas` setting in the `install-config.yaml` file should be set to `1`.
1627

modules/install-sno-generating-the-install-iso-manually.adoc

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Installing {product-title} on a single node requires an installation ISO, which
1414
1515
.Procedure
1616

17+
ifndef::openshift-origin[]
1718
. Set the {product-title} version:
1819
+
1920
[source,terminal]
@@ -22,6 +23,17 @@ $ OCP_VERSION=<ocp_version> <1>
2223
----
2324
+
2425
<1> Replace `<ocp_version>` with the current version, for example, `latest-{product-version}`
26+
endif::openshift-origin[]
27+
ifdef::openshift-origin[]
28+
. Set the {product-title} version:
29+
+
30+
[source,terminal]
31+
----
32+
$ OKD_VERSION=<okd_version> <1>
33+
----
34+
+
35+
<1> Replace `<okd_version>` with the current version, for example, `4.14.0-0.okd-2024-01-26-175629`
36+
endif::openshift-origin[]
2537

2638
. Set the host architecture:
2739
+
@@ -31,6 +43,7 @@ $ ARCH=<architecture> <1>
3143
----
3244
<1> Replace `<architecture>` with the target host architecture, for example, `aarch64` or `x86_64`.
3345

46+
ifndef::openshift-origin[]
3447
. Download the {product-title} client (`oc`) and make it available for use by entering the following commands:
3548
+
3649
[source,terminal]
@@ -47,13 +60,42 @@ $ tar zxf oc.tar.gz
4760
----
4861
$ chmod +x oc
4962
----
63+
endif::openshift-origin[]
64+
ifdef::openshift-origin[]
65+
. Download the {product-title} client (`oc`) and make it available for use by entering the following commands:
66+
+
67+
[source,terminal]
68+
----
69+
$ curl -L https://github.com/okd-project/okd/releases/download/$OKD_VERSION/openshift-client-linux-$OKD_VERSION.tar.gz -o oc.tar.gz
70+
----
71+
+
72+
[source,terminal]
73+
----
74+
$ tar zxf oc.tar.gz
75+
----
76+
+
77+
[source,terminal]
78+
----
79+
$ chmod +x oc
80+
----
81+
endif::openshift-origin[]
5082

83+
ifndef::openshift-origin[]
5184
. Download the {product-title} installer and make it available for use by entering the following commands:
5285
+
5386
[source,terminal]
5487
----
5588
$ curl -k https://mirror.openshift.com/pub/openshift-v4/clients/ocp/$OCP_VERSION/openshift-install-linux.tar.gz -o openshift-install-linux.tar.gz
5689
----
90+
endif::openshift-origin[]
91+
ifdef::openshift-origin[]
92+
. Download the {product-title} installer and make it available for use by entering the following commands:
93+
+
94+
[source,terminal]
95+
----
96+
$ curl -L https://github.com/okd-project/okd/releases/download/$OKD_VERSION/openshift-install-linux-$OKD_VERSION.tar.gz -o openshift-install-linux.tar.gz
97+
----
98+
endif::openshift-origin[]
5799
+
58100
[source,terminal]
59101
----
@@ -72,12 +114,22 @@ $ chmod +x openshift-install
72114
$ ISO_URL=$(./openshift-install coreos print-stream-json | grep location | grep $ARCH | grep iso | cut -d\" -f4)
73115
----
74116

117+
ifndef::openshift-origin[]
75118
. Download the {op-system} ISO:
76119
+
77120
[source,terminal]
78121
----
79122
$ curl -L $ISO_URL -o rhcos-live.iso
80123
----
124+
endif::openshift-origin[]
125+
ifdef::openshift-origin[]
126+
. Download the {op-system} ISO:
127+
+
128+
[source,terminal]
129+
----
130+
$ curl -L $ISO_URL -o fcos-live.iso
131+
----
132+
endif::openshift-origin[]
81133

82134
. Prepare the `install-config.yaml` file:
83135
+
@@ -115,11 +167,17 @@ sshKey: |
115167
<3> Set the `controlPlane` replicas to `1`. In conjunction with the previous `compute` setting, this setting ensures the cluster runs on a single node.
116168
<4> Set the `metadata` name to the cluster name.
117169
<5> Set the `networking` details. OVN-Kubernetes is the only allowed network plugin type for single-node clusters.
170+
ifndef::openshift-origin[]
118171
<6> Set the `cidr` value to match the subnet of the {sno} cluster.
172+
endif::openshift-origin[]
173+
ifdef::openshift-origin[]
174+
<6> Set the `cidr` value to match the subnet of the {sno-okd} cluster.
175+
endif::openshift-origin[]
119176
<7> Set the path to the installation disk drive, for example, `/dev/disk/by-id/wwn-0x64cd98f04fde100024684cf3034da5c2`.
120177
<8> Copy the {cluster-manager-url-pull} and add the contents to this configuration setting.
121178
<9> Add the public SSH key from the administration host so that you can log in to the cluster after installation.
122179

180+
ifndef::openshift-origin[]
123181
. Generate {product-title} assets by running the following commands:
124182
+
125183
[source,terminal]
@@ -150,3 +208,36 @@ $ alias coreos-installer='podman run --privileged --pull always --rm \
150208
----
151209
$ coreos-installer iso ignition embed -fi ocp/bootstrap-in-place-for-live-iso.ign rhcos-live.iso
152210
----
211+
endif::openshift-origin[]
212+
ifdef::openshift-origin[]
213+
. Generate {product-title} assets by running the following commands:
214+
+
215+
[source,terminal]
216+
----
217+
$ mkdir sno
218+
----
219+
+
220+
[source,terminal]
221+
----
222+
$ cp install-config.yaml sno
223+
----
224+
+
225+
[source,terminal]
226+
----
227+
$ ./openshift-install --dir=sno create single-node-ignition-config
228+
----
229+
230+
. Embed the ignition data into the {op-system} ISO by running the following commands:
231+
+
232+
[source,terminal]
233+
----
234+
$ alias coreos-installer='podman run --privileged --pull always --rm \
235+
-v /dev:/dev -v /run/udev:/run/udev -v $PWD:/data \
236+
-w /data quay.io/coreos/coreos-installer:release'
237+
----
238+
+
239+
[source,terminal]
240+
----
241+
$ coreos-installer iso ignition embed -fi sno/bootstrap-in-place-for-live-iso.ign fcos-live.iso
242+
----
243+
endif::openshift-origin[]

modules/install-sno-installing-sno-on-azure.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
:_mod-docs-content-type: CONCEPT
66
[id="installing-sno-on-azure_{context}"]
7+
ifndef::openshift-origin[]
78
= Installing {sno} on Azure
9+
endif::openshift-origin[]
10+
ifdef::openshift-origin[]
11+
= Installing {sno-okd} on Azure
12+
endif::openshift-origin[]
813

914
Installing a single node cluster on Azure requires installer-provisioned installation using the "Installing a cluster on Azure with customizations" procedure.

modules/install-sno-installing-sno-on-gcp.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
:_mod-docs-content-type: CONCEPT
66
[id="installing-sno-on-gcp_{context}"]
7+
ifndef::openshift-origin[]
78
= Installing {sno} on GCP
9+
endif::openshift-origin[]
10+
ifdef::openshift-origin[]
11+
= Installing {sno-okd} on GCP
12+
endif::openshift-origin[]
813

914
Installing a single node cluster on GCP requires installer-provisioned installation using the "Installing a cluster on GCP with customizations" procedure.

modules/install-sno-installing-with-usb-media.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,19 @@ You can install software using a bootable USB drive that contains an ISO image.
2020
----
2121
+
2222
where:
23+
ifndef::openshift-origin[]
2324
+
2425
--
2526
<path_to_iso>:: is the relative path to the downloaded ISO file, for example, `rhcos-live.iso`.
2627
<path_to_usb>:: is the location of the connected USB drive, for example, `/dev/sdb`.
2728
--
29+
endif::openshift-origin[]
30+
ifdef::openshift-origin[]
31+
+
32+
--
33+
<path_to_iso>:: is the relative path to the downloaded ISO file, for example, `fcos-live.iso`.
34+
<path_to_usb>:: is the location of the connected USB drive, for example, `/dev/sdb`.
35+
--
36+
endif::openshift-origin[]
2837
+
2938
After the ISO is copied to the USB drive, you can use the USB drive to install software on the server.

0 commit comments

Comments
 (0)