Skip to content

Commit

Permalink
coreos install tips
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzheng422 committed Jun 14, 2022
1 parent 7ff9f57 commit 0f406a8
Show file tree
Hide file tree
Showing 9 changed files with 102 additions and 0 deletions.
53 changes: 53 additions & 0 deletions redhat/ocp4/4.10/4.10.bf2.offload.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# openshift 4.10 BF2 offload

# fresh BF2 os with rhel 8.6

- [Installing Red Hat Enterprise Linux on NVIDIA BlueField-2 DPU](https://developers.redhat.com/articles/2021/10/18/sensitive-information-detection-using-nvidia-morpheus-ai-framework#setting_up_nvidia_netq_agent_on_nvidia_bluefield_2_dpu)

```bash


# https://bugzilla.redhat.com/show_bug.cgi?id=1814682
dnf install -y kernel-modules-extra psmisc

mkdir -p /data/down/
cd /data/down/

dnf install -y rshim expect wget minicom rpm-build lshw
systemctl enable --now rshim
systemctl status rshim --no-pager -l

dnf install -y openssl-devel mstflint

# nat router on host
# https://access.redhat.com/discussions/4642721
cat << EOF >> /etc/sysctl.d/99-wzh-sysctl.conf
net.ipv4.ip_forward = 1
EOF
sysctl --system

systemctl disable --now firewalld




BF_VERSION=3.9.0
MLNX_OFED_VERSION=5.6-1.0.3.3

wget --quiet https://linux.mellanox.com/public/repo/bluefield/${BF_VERSION}/extras/mlnx_ofed/${MLNX_OFED_VERSION}/MLNX_OFED_SRC-${MLNX_OFED_VERSION}.tgz
tar xzf MLNX_OFED_SRC-${MLNX_OFED_VERSION}.tgz
MLNX_OFED_SRC-${MLNX_OFED_VERSION}/install.pl -k $kernel --kernel-extra-args '--with-sf-cfg-drv --without-xdp --without-odp' --kernel-only --disable-kmp

```

# install ocp master on kvm on 102


# add ocp worker on baremetal on 103


# config BF2 to install ovnK to connect to ocp


7 changes: 7 additions & 0 deletions redhat/ocp4/4.10/4.10.sno.boot.from.linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@

![](dia/4.10.sno.from.centos.drawio.svg)

视频讲解

[<kbd><img src="imgs/2022-06-14-13-03-19.png" width="600"></kbd>](https://www.bilibili.com/video/BV1i3411g7i3)

- [bilibili](https://www.bilibili.com/video/BV1i3411g7i3)
- [youtube](https://youtu.be/7U-5yW9UZZQ)

# from centos7

```bash
Expand Down
7 changes: 7 additions & 0 deletions redhat/ocp4/4.10/4.10.sno.installer.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ installer 的内部安装逻辑图:

![](dia/4.10.sno.installer.drawio.svg)

视频讲解

[<kbd><img src="imgs/2022-06-14-13-03-19.png" width="600"></kbd>](https://www.bilibili.com/video/BV1i3411g7i3)

- [bilibili](https://www.bilibili.com/video/BV1i3411g7i3)
- [youtube](https://youtu.be/7U-5yW9UZZQ)

# on helper node

```bash
Expand Down
7 changes: 7 additions & 0 deletions redhat/ocp4/4.10/4.10.sno.nfs.lvm.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

single node ocp,如果有一块单独的硬盘,那么可以用lvm operator来自动分配lvm,创建存储给应用用。我们接下来在这个存储基础上配置nfs,就变成了一个集群内部的nfs服务。

视频讲解

[<kbd><img src="imgs/2022-06-14-13-03-19.png" width="600"></kbd>](https://www.bilibili.com/video/BV1i3411g7i3)

- [bilibili](https://www.bilibili.com/video/BV1i3411g7i3)
- [youtube](https://youtu.be/7U-5yW9UZZQ)

# install [lvm operator](https://github.com/red-hat-storage/lvm-operator)

we need local storage, and we are single node openshift, so we use lvm operator, find the operator from operator hub and install :
Expand Down
7 changes: 7 additions & 0 deletions redhat/ocp4/4.10/4.10.sno.odf.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

本文档的前导实验,是[如何部署一个普通的single node openshift](./4.10.sno.installer.md)

视频讲解

[<kbd><img src="imgs/2022-06-14-13-03-19.png" width="600"></kbd>](https://www.bilibili.com/video/BV1i3411g7i3)

- [bilibili](https://www.bilibili.com/video/BV1i3411g7i3)
- [youtube](https://youtu.be/7U-5yW9UZZQ)

reference:
- [ODF4SNO](https://github.com/redhat-partner-solutions/odf4sno)
- [fork](https://github.com/wangzheng422/odf4sno)
Expand Down
7 changes: 7 additions & 0 deletions redhat/ocp4/4.10/4.10.sno.partition.quay.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@

![](dia/4.10.sno.partition.drawio.svg)

视频讲解

[<kbd><img src="imgs/2022-06-14-13-03-19.png" width="600"></kbd>](https://www.bilibili.com/video/BV1i3411g7i3)

- [bilibili](https://www.bilibili.com/video/BV1i3411g7i3)
- [youtube](https://youtu.be/7U-5yW9UZZQ)

# additional steps during sno install

```bash
Expand Down
7 changes: 7 additions & 0 deletions redhat/ocp4/4.10/4.10.upgrade.tips.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# openshift 4.10 upgrade tips

- [How to start Red Hat CoreOS (RHCOS) in emergency mode in OpenShift Container Platform 4.](https://access.redhat.com/solutions/5500131)
- [Cluster operator kube-apiserver should not be upgraded between minor versions](https://access.redhat.com/solutions/6694821)
- [Rebuild all Openshift-OVN-Kubernetes pods](https://access.redhat.com/solutions/6449381)
- [[OVN] no route to host for POD to POD communication](https://access.redhat.com/solutions/6810011)
- [Preparing to upgrade to OpenShift Container Platform 4.9](https://access.redhat.com/articles/6329921)
7 changes: 7 additions & 0 deletions redhat/ocp4/4.10/4.10.upi.centos.2.small.disk.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@

![](./dia/4.10.upi.from.centos.small.disk.drawio.svg)

视频讲解

[<kbd><img src="imgs/2022-06-14-13-03-19.png" width="600"></kbd>](https://www.bilibili.com/video/BV1i3411g7i3)

- [bilibili](https://www.bilibili.com/video/BV1i3411g7i3)
- [youtube](https://youtu.be/7U-5yW9UZZQ)

# in-lab test


Expand Down
Binary file added redhat/ocp4/4.10/imgs/2022-06-14-13-03-19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0f406a8

Please sign in to comment.