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
Copy file name to clipboardExpand all lines: README.md
+24-4Lines changed: 24 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
# OpenShift 4 UPI Home Lab Installation
2
2
3
-
I followed these steps to build out my OpenShift 4 UPI home lab using Red Hat Enterprise Virtualization (RHEV) virtual machines. Refer to the official documentation for a [bare metal installation]
3
+
I followed these steps to build out my OpenShift 4 UPI home lab using Red Hat Enterprise Virtualization (RHEV) virtual machines. Refer to the official documentation for a [bare metal installation].
4
+
5
+
For a restricted network setup using a mirror Docker repository, follow the additional steps denoted by **[Restricted Network]**.
@@ -14,6 +16,11 @@ I followed these steps to build out my OpenShift 4 UPI home lab using Red Hat En
14
16
15
17
I followed instructions from this [Git repository] to build out a UPI helper node. This allowed me to satisfy load balancing, DHCP, PXE, DNS, and HTTPD requirements. I ran `nmcli device show` from the helper node to populate the DHCP section of vars.yaml since the helper node will function as DNS/DHCP for the cluster. At this time, don't run the helper node configuration playbook yet.
16
18
19
+
**[Restricted Network]** - Add mirror repository to DNS
20
+
21
+
Add the mirror repository to the DNS entries on your authoritative helper node. Using the above UPI helper node Git repository, I added DNS entries to the following files: `/var/named/zonefile.db` and `/var/named/reverse.db`
22
+
23
+
17
24
### 2. Bare metal installation
18
25
19
26
I continued with the bare metal installation, following the steps in the [documentation]
@@ -23,11 +30,21 @@ I continued with the bare metal installation, following the steps in the [docume
23
30
* Installing the OpenShift Command-line Interface
24
31
* Manually creating the installation configuration file
25
32
* To get started, an example has been placed in the save directory and can be used with the following command: `cp save/install-config-example.yaml save/install-config.yaml`
33
+
***[Restricted Network]** Use this example instead of the above: `cp save/install-config-restricted-example.yaml save/install-config.yaml`
26
34
* Replace the contents of `save/install-config.yaml` with your custom configuration
27
35
28
36
### 3. Create virtual machines
29
37
38
+
#### 3a. **[Restricted Network]** - Set up restricted network
39
+
* Set up networking on hypervisor - For a restricted network cluster, you will need to configure a separate network, vNIC profile, and VLAN tag on your hypervisor. This configuration is beyond the scope of this repository.
40
+
* Configure the bastion, bootstrap, masters, and compute nodes to use the network interface for the restricted network configured above. You can use a `192.168.x.0/24` subnet for this.
41
+
* Follow the official documentation to [install a mirror repository] or refer to this repository to [install Sonatype Nexus as a mirror Docker repository].
42
+
* Configure your mirror repository with two network interface, one for the restricted network and one with access to [Red Hat's public sites].
43
+
44
+
#### 3b. Continue creating virtual machines
45
+
30
46
For this step, "Creating Red Hat Enterprise Linux CoreOS (RHCOS) machines using an ISO image", I proceeded as follows.
47
+
31
48
* In RHEV, I created the VMs for the bootstrap, control plane, and compute nodes.
32
49
* For disks, I used Preallocated for the masters and Thin Provisioning for the bootstrap and compute nodes. The etcd database on masters is I/O intensive and thus Preallocated is recommended.
33
50
* While creating the VMs booted from CD-ROM using a downloaded version of this ISO locally hosted in RHEV:
@@ -91,9 +108,9 @@ To verify installation, I ran this helper script: `./complete-install.sh`
91
108
92
109
Refer to this documentation for [post installation procedures (day 2)].
93
110
94
-
## [Restricted Network] - Update Cluster with Mirror Repository
111
+
## **[Restricted Network]** - Update Minor Version in Cluster with Mirror Repository
95
112
96
-
Refer to this documentation for [updating a cluster in a restricted network].
113
+
Refer to this documentation for [updating the minor version in a cluster in a restricted network].
97
114
98
115
## License
99
116
GPLv3
@@ -104,5 +121,8 @@ Kevin Chung
104
121
[bare metal installation]: https://cloud.redhat.com/openshift/install/metal/user-provisioned
[Red Hat's public sites]: https://docs.openshift.com/container-platform/latest/installing/install_config/configuring-firewall.html
125
+
[install a mirror repository]: https://docs.openshift.com/container-platform/4.4/installing/install_config/installing-restricted-networks-preparations.html#installation-creating-mirror-registry_installing-restricted-networks-preparations
126
+
[install Sonatype Nexus as a mirror repository]: https://github.com/kevchu3/nexus-docker-repo
0 commit comments