Developer Deployment Instructions

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-bootstrap https://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 20240215124034 (1) Click on Register (2) Register a new account 20240215124218 (3) Click on New Migration click on Git 20240215124321 (4) Click on Migrate From Git

  • https://github.com/tosin2013/edge-anomaly-detection.git 20240316101425 (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 20240316101706 File path 2: clusters/overlays/rhdp-4.15-ships/patch-applicationset-repo-revision.yaml 20240316101836

  • Replace with your gita URL for Trains Example
    File path: clusters/overlays/rhdp-4.15-trains/patch-application-repo-revision.yaml 20240316102021 File path 2: clusters/overlays/rhdp-4.15-trains/patch-applicationset-repo-revision.yaml 20240316102121

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

Ensure the ArgoCD application is in sync

20240316104519

WorkShop Steps

Notebooks

Back to Homepage

Share