Published: Mar 16, 2024 by
Prerequisites
- RHEL 8.x jumpbox that is registred with Red Hat
- Review and run the openshift-ai-workload.sh
- If using demo.redhat.com use
RHEL 8 Base
instance to configure a jumpbox and run the fork and run rhel8-bootstraphttps://github.com/tosin2013/rhel8-bootstrap/actions/workflows/configure-rhel8-bastion.yml
to run GitHub Actions to configure the jumpbox. Igf you do not want to run this on your laptop.
SSH into RHEL jumpbox
Deploying GPUs for AI Workloads on OpenShift on AWS
Export the following AWS variables before running this script:
export aws_access_key_id="YOUR_ACCESS_KEY_ID"
export aws_secret_access_key="YOUR_SECRET_ACCESS_KEY"
export aws_region="YOUR_AWS_REGION"
curl -OL https://gist.githubusercontent.com/tosin2013/76e47de3f32de4486ab4699c21b2188e/raw/959ae5dd2117edf124e4531cfae5216c722a3358/openshift-ai-workload.sh
chmod +x openshift-ai-workload.sh
./openshift-ai-workload.sh m6i.4xlarge # without GPU
./openshift-ai-workload.sh g4dn.2xlarge # with GPU
Configure SSL for OpenShift Console
- Configuring SSL for OpenShift Console
- configure-keys-on-openshift.sh
$ sudo su - $ curl -OL https://gist.githubusercontent.com/tosin2013/866522a1420ac22f477d2253121b4416/raw/35d6fa88675d63b6ecf58a827df32356ccf3ddde/configure-keys-on-openshift.sh $ chmod +x configure-keys-on-openshift.sh $ ./configure-keys-on-openshift.sh AWS_ACCESS_KEY AWS_SECRET_ACCESS_KEY podman
Deploy Gitea
curl -OL https://raw.githubusercontent.com/tosin2013/openshift-demos/master/quick-scripts/deploy-gitea.sh
chmod +x deploy-gitea.sh
./deploy-gitea.sh
Configure Gitea
Click on route in OpenShift Console (1) Click on Register (2) Register a new account (3) Click on New Migration click on Git (4) Click on Migrate From Git
- https://github.com/tosin2013/edge-anomaly-detection.git (5) Edit the following folders in the repo
-
Replace with your gita URL for Ships Example
File path:clusters/overlays/rhdp-4.15-ships/patch-application-repo-revision.yaml
File path 2:clusters/overlays/rhdp-4.15-ships/patch-applicationset-repo-revision.yaml
- Replace with your gita URL for Trains Example
File path:clusters/overlays/rhdp-4.15-trains/patch-application-repo-revision.yaml
File path 2:clusters/overlays/rhdp-4.15-trains/patch-applicationset-repo-revision.yaml
Configure jumpbox for deployment
curl -OL https://raw.githubusercontent.com/tosin2013/edge-anomaly-detection/main/dev-box.sh
chmod +x dev-box.sh
export GIT_REPO="https://gitea-with-admin-gitea.apps.edge-detection.sandbox105.opentlc.com/user1/edge-anomaly-detection.git"
./dev-box.sh