Skip to content

Commit

Permalink
ocp
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzheng422 committed Oct 13, 2023
1 parent bb40c0e commit c80ba9d
Show file tree
Hide file tree
Showing 6 changed files with 174 additions and 86 deletions.
18 changes: 18 additions & 0 deletions redhat/ocp4/4.13/4.13.gpu.llm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# LLM on openshift

continue with [install doc](./4.13.single.node.upi.agent.md)

we have 2 node, 1 master, 1 worker.

# gpu operator

- https://docs.nvidia.com/datacenter/cloud-native/openshift/latest/introduction.html#openshift-introduction

Installing the Node Feature Discovery (NFD) Operator

![](imgs/2023-10-13-20-48-28.png)

install gpu operator through opeartor hub

![](imgs/2023-10-13-20-33-26.png)

20 changes: 12 additions & 8 deletions redhat/ocp4/4.13/4.13.helper.node.oc.mirror.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,12 +379,13 @@ ls -hl /data/quay
# -rw-r--r--. 1 root root 430M Mar 9 21:54 redis.tar

# to uninstall, do not use in setup
cd /data/quay
./mirror-registry uninstall -v \
--autoApprove true --quayRoot /data/quay \
--targetHostname quaylab.infra.wzhlab.top \
--

# https://quaylab.infra.redhat.ren:8443/
# https://quaylab.infra.wzhlab.top:8443/
```

## using upstream
Expand All @@ -396,16 +397,18 @@ ls -hl /data/quay
mkdir -p /data/quay
cd /data/swap

export http_proxy="http://127.0.0.1:18801"
export http_proxy="http://127.0.0.1:7890"
export https_proxy=${http_proxy}

wget -O mirror-registry-offline.tar.gz https://github.com/quay/mirror-registry/releases/download/v1.3.2/mirror-registry-offline.tar.gz
wget -c -O mirror-registry-offline.tar.gz https://github.com/quay/mirror-registry/releases/download/v1.3.8/mirror-registry-offline.tar.gz

unset http_proxy
unset https_proxy

tar zvxf mirror-registry-offline.tar.gz
mkdir -p /data/quay
tar zvxf mirror-registry-offline.tar.gz -C /data/quay

cd /data/quay
./mirror-registry install -v \
--initPassword redhatadmin --initUser admin \
--quayHostname quaylab.infra.wzhlab.top --quayRoot /data/quay \
Expand All @@ -417,6 +420,7 @@ tar zvxf mirror-registry-offline.tar.gz
# INFO[2022-12-13 13:55:24] Quay is available at https://quaylab.infra.redhat.ren:8443 with credentials (admin, redhatadmin)

# to uninstall, do not use in setup
cd /data/quay
./mirror-registry uninstall -v \
--autoApprove true --quayRoot /data/quay \
--targetHostname quaylab.infra.wzhlab.top \
Expand Down Expand Up @@ -586,7 +590,7 @@ wget -O oc-mirror.tar.gz https://mirror.openshift.com/pub/openshift-v4/x86_64/cl
tar -xzf openshift-client-linux-${BUILDNUMBER}.tar.gz -C /usr/local/bin/
tar -xzf openshift-install-linux-${BUILDNUMBER}.tar.gz -C /usr/local/bin/

wget -O oc-mirror.tar.gz https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/${BUILDNUMBER}/oc-mirror.tar.gz
# wget -O oc-mirror.tar.gz https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/${BUILDNUMBER}/oc-mirror.tar.gz
tar -xzf oc-mirror.tar.gz -C /usr/local/bin/
chmod +x /usr/local/bin/oc-mirror

Expand All @@ -601,7 +605,7 @@ export BUILDNUMBER=4.13.15

oc adm release mirror -a $SEC_FILE --keep-manifest-list=true \
--from=quay.io/openshift-release-dev/ocp-release:$BUILDNUMBER-x86_64 \
--to=quaylab.infra.wzhlab.top:5443/ocp4/openshift4 -v 9
--to=quaylab.infra.wzhlab.top:5443/ocp4/openshift4

```

Expand Down Expand Up @@ -655,7 +659,7 @@ mirror:
- amd64
# - arm64
channels:
- name: stable-4.13
- name: fast-4.13
type: ocp
minVersion: 4.13.15
maxVersion: 4.13.15
Expand Down Expand Up @@ -812,7 +816,7 @@ podman exec assisted-installer-image-service du -h /data
```


## 准备vnc环境
# 准备vnc环境

```bash
dnf -y install tigervnc-server
Expand Down
20 changes: 17 additions & 3 deletions redhat/ocp4/4.13/4.13.pdns.helper.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pdns:
- name: quay
ip_addr: 192.168.77.11
- name: quaylab
ip_addr: 192.168.77.11
ip_addr: 172.21.6.11
- name: panlab-satellite-server
ip_addr: 172.21.6.171
- base_domain: chatgtpcat.tech
Expand All @@ -62,10 +62,24 @@ cluster:
name: sno-master-01
# - ip_addr: 192.168.77.14
# - ip_addr: 192.168.77.15
- base_domain: gpu-sno.wzhlab.top
- base_domain: demo-gpu.wzhlab.top
node:
- ip_addr: 192.168.77.14
- ip_addr: 172.21.6.23
name: gpu-master-01
- ip_addr: 172.21.6.24
name: gpu-master-02
- ip_addr: 172.21.6.25
name: gpu-master-03
- ip_addr: 172.21.6.26
name: gpu-worker-01
- ip_addr: 172.21.6.27
name: gpu-worker-02
- ip_addr: 172.21.6.28
name: gpu-worker-03
api:
- ip_addr: 172.21.6.23
apps:
- ip_addr: 172.21.6.23
- base_domain: acm-demo-one.wzhlab.top
node:
- ip_addr: 192.168.77.22
Expand Down
Loading

0 comments on commit c80ba9d

Please sign in to comment.