Skip to content

Commit

Permalink
Add image and README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
k37y committed Jun 8, 2022
1 parent ceff48d commit a165e6c
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
Binary file added .img/ocp-ipi-baremetal-lab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 58 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
## OpenShift IPI Baremetal Lab (oibl)

### Architecture
![OpenShift IPI Baremetal Lab](https://raw.githubusercontent.com/kevydotvinu/ocp-ipi-baremetal-lab/main/.img/ocp-ipi-baremetal-lab.png)

### Prerequisites
* A virtual machine with the below resources:

| CPU | RAM | Storage |
|-----|-----|---------|
| 30 | 120 GB | 300 GB |

* Nested virtualization

![RHEV CPU Pass-through](https://raw.githubusercontent.com/kevydotvinu/disconnectedOCPonKVM/main/.img/passThroughHostCpu.png)

* Custom Fedora CoreOS
- Either download an ISO image from [here]().
- Or [build](#build-custom-fedora-coreos) one using the [CoreOs Assembler](https://github.com/coreos/coreos-assembler) with an [ignition](#generate-ignition) file and a [fedora-coreos-config](https://github.com/kevydotvinu/fedora-coreos-config).

### Preparation
```bash
$ coreos-installer install /dev/sda
$ sudo systemctl reboot
$ ssh kni@<IP> (Enter `Kni@123` as password)
$ sudo systemctl reboot
```

### Usage
```bash
oibl help
oibl ssh-pullsecret OCM_TOKEN=<OCM_TOKEN>
oibl install-config RELEASE=stable-4.10
oibl cluster LOGLEVEL=info
```
### Build custom Fedora CoreOS
##### Define a bash alias to run cosa
* See [this](https://github.com/coreos/coreos-assembler/blob/main/docs/building-fcos.md#define-a-bash-alias-to-run-cosa).
##### Initialize
```bash
$ mkdir oibl
$ cd oibl
$ cosa init https://github.com/kevydotvinu/fedora-coreos-config
```
##### Build
```bash
$ make -C src/config generate-iso
```
##### Check the ISO file
```bash
$ find -iname "*.iso" | tail -n 1
```
### Generate ignition
```bash
git clone https://gist.github.com/kevydotvinu/d8442779a1fd6de82fbc81c77047bd41
cd d8442779a1fd6de82fbc81c77047bd41
make
```

0 comments on commit a165e6c

Please sign in to comment.