Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo: parasol #88

Merged
merged 3 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .wordlist-md
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ libvirt
lifecycle
linkedin
linux
llm
localhost
machineset
managementState
Expand Down Expand Up @@ -283,6 +284,7 @@ odo
ok
olm
oneAPI
openai
opendatahub
openldap
openshift
Expand All @@ -297,6 +299,7 @@ popd
postgres
pre
prem
prereqs
priorityclass
prometheus
provisioner
Expand Down Expand Up @@ -365,6 +368,7 @@ untar
untardir
useable
vSphere
vllm
vscode
vsphere
weaviate
Expand All @@ -373,6 +377,3 @@ wip
workspaces
www
yaml
llm
vllm
openai
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# shellcheck disable=SC1091
. /scripts/ocp.sh

INSTANCE_TYPE=${INSTANCE_TYPE:-g4dn.4xlarge}

ocp_aws_cluster || exit 0
ocp_aws_create_gpu_machineset
ocp_aws_create_gpu_machineset "${INSTANCE_TYPE}"
ocp_create_machineset_autoscale
54 changes: 21 additions & 33 deletions workshop/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,31 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
# - ../../components/configs/kustomized/custom-notebook-images/overlays/rhoai
# - ../../components/configs/kustomized/minio/overlays/with-namespace-known-password
# - ../../components/configs/kustomized/rhoai-config
# - ../../components/configs/kustomized/rhoai-config-patches
# - ../../components/configs/kustomized/rhoai-data-connector/overlays/group-project
# - ../../components/configs/kustomized/rhoai-data-connector/overlays/kserve-project
# - ../../components/configs/kustomized/rhoai-notebook
# - ../../components/configs/kustomized/rhoai-pipelines
# - ../../components/configs/kustomized/rhoai-projects
# - ../../components/operators/openshift-pipelines-operator-rh/operator/overlays/latest
# - ../../components/operators/rhods-operator/operator/overlays/fast
# - ../../components/operators/rhods-operator/instance/overlays/2.6
# - ../../components/operators/serverless-operator/operator/overlays/stable
# - ../../components/operators/servicemeshoperator/operator/overlays/stable
- ../../demos/base/rhoai
- ../../components/configs/kustomized/rhoai-config

# - ../../components/configs/cluster/rbac/overlays/workshop
# - ../../components/configs/cluster/login/overlays/htpasswd
- ../../components/configs/cluster/rbac/overlays/workshop
- ../../components/configs/cluster/login/overlays/htpasswd

# - ../../demos/base/all
# - ../../demos/base/nvidia-gpu-autoscale
- ../../demos/base/all
- ../../demos/base/nvidia-gpu-autoscale

- htpasswd-secret.yaml
- link-github.yaml
- minio-rb-view.yaml

# patches:
# - path: dashboard-config-cr.yaml
# - target:
# kind: ConsoleNotification
# name: banner-demo
# patch: |-
# - op: replace
# path: /spec/text
# value: 'WORKSHOP: Fraud Detection w/ Red Hat OpenShift AI'
# - path: patch-idp.yaml
# target:
# group: config.openshift.io
# kind: OAuth
# name: cluster
# version: v1
patches:
- path: dashboard-config-cr.yaml
- target:
kind: ConsoleNotification
name: banner-demo
patch: |-
- op: replace
path: /spec/text
value: 'WORKSHOP: Fraud Detection w/ Red Hat OpenShift AI'
- path: patch-idp.yaml
target:
group: config.openshift.io
kind: OAuth
name: cluster
version: v1
2 changes: 1 addition & 1 deletion workshop/base/link-github.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ spec:
text: GitHub - Fraud Detection
applicationMenu:
section: Git Repos
imageURL: https://img.icons8.com/fluency/512/github.png
imageURL: /static/assets/github.svg
68 changes: 68 additions & 0 deletions workshop/wip/kludge-parasol/00-prereqs/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../../../demos/rhoai-nvidia-gpu-autoscale
- ../../../../components/configs/kustomized/rhoai-config
# - ../../../../components/operators/kiali-ossm/operator/overlays/stable
# - ../../../../components/operators/jaeger-product/operator/overlays/stable
# - ../../../../components/operators/elasticsearch-operator/operator/overlays/stable

patches:
- target:
kind: ConsoleNotification
name: banner-demo
patch: |-
- op: replace
path: /spec/text
value: 'DEMO: Red Hat OpenShift AI (RHOAI) - Parasol Insurance Workshop'
- target:
kind: Subscription
name: rhods-operator
patch: |-
- op: replace
path: /spec/channel
value: stable
- op: replace
path: /spec/installPlanApproval
value: Manual
- op: add
path: /spec/startingCSV
value: rhods-operator.2.8.1
- target:
kind: Subscription
name: gpu-operator-certified
patch: |-
- op: replace
path: /spec/channel
value: v23.6
# - op: replace
# path: /spec/installPlanApproval
# value: Manual
- op: add
path: /spec/startingCSV
value: gpu-operator-certified.v23.6.0
- target:
kind: Job
name: job-aws-gpu-machineset
patch: |-
- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: INSTANCE_TYPE
value: g5.2xlarge
# - target:
# kind: ConfigMap
# name: job-aws-gpu-machineset
# patch: |-
# - op: replace
# path: /data/job.sh
# value: |
# #!/bin/bash

# # shellcheck disable=SC1091
# . /scripts/ocp.sh

# ocp_aws_cluster || exit 0
# ocp_aws_create_gpu_machineset g5.2xlarge
# ocp_create_machineset_autoscale
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
# - ../../rhoai-nvidia-gpu-autoscale
# - ../../../components/configs/kustomized/rhoai-config

- https://github.com/rh-aiservices-bu/parasol-insurance/bootstrap/ic-rhoai-configuration?ref=dev
- https://github.com/rh-aiservices-bu/parasol-insurance/bootstrap/ic-shared-app?ref=dev
- https://github.com/rh-aiservices-bu/parasol-insurance/bootstrap/ic-shared-database?ref=dev
Expand All @@ -15,13 +12,6 @@ resources:
- https://github.com/rh-aiservices-bu/parasol-insurance/bootstrap/ic-user-projects?ref=dev

patches:
- target:
kind: ConsoleNotification
name: banner-demo
patch: |-
- op: replace
path: /spec/text
value: 'DEMO: Red Hat OpenShift AI (RHOAI) - Parasol Insurance Workshop'
- target:
kind: PersistentVolumeClaim
namespace: ic-shared-llm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@ The scripting is also difficult to follow and repair - lots of glue code
# setup base cluster
apply_firmly clusters/default
# setup base rhoai
apply_firmly demos/rhoai-nvidia-gpu-autoscale

# setup demo things
apply_firmly components/configs/kustomized/rhoai-config
apply_firmly demos/wip/kludge-parasol
apply_firmly demos/wip/kludge-parasol/00-prereqs
# setup demo
apply_firmly demos/wip/kludge-parasol/01-setup
```

## Links
Expand Down