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

RHOAI bootstrap gitops installation #128

Merged
merged 8 commits into from
Sep 24, 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
108 changes: 59 additions & 49 deletions bootstrap/applicationset/applicationset-bootstrap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,66 +5,76 @@ metadata:
namespace: openshift-gitops
spec:
generators:
- list:
elements:
- cluster: in-cluster
name: ic-shared-minio-app
repoURL: https://github.com/rh-aiservices-bu/parasol-insurance.git
targetRevision: dev
path: bootstrap/ic-shared-minio
- cluster: in-cluster
name: ic-shared-database-app
repoURL: https://github.com/rh-aiservices-bu/parasol-insurance.git
targetRevision: dev
path: bootstrap/ic-shared-database
- cluster: in-cluster
name: ic-shared-llm-app
repoURL: https://github.com/rh-aiservices-bu/parasol-insurance.git
targetRevision: dev
path: bootstrap/ic-shared-llm
- cluster: in-cluster
name: ic-shared-img-det
repoURL: https://github.com/rh-aiservices-bu/parasol-insurance.git
targetRevision: dev
path: bootstrap/ic-shared-img-det
- cluster: in-cluster
name: ic-rhoai-configuration
repoURL: https://github.com/rh-aiservices-bu/parasol-insurance.git
targetRevision: dev
path: bootstrap/ic-rhoai-configuration
- cluster: in-cluster
name: ic-user-projects
repoURL: https://github.com/rh-aiservices-bu/parasol-insurance.git
targetRevision: dev
path: bootstrap/ic-user-projects
- cluster: in-cluster
name: ic-shared-milvus
repoURL: https://github.com/rh-aiservices-bu/parasol-insurance.git
targetRevision: dev
path: bootstrap/ic-shared-milvus
- cluster: in-cluster
name: ic-shared-app
repoURL: https://github.com/rh-aiservices-bu/parasol-insurance.git
targetRevision: dev
path: bootstrap/ic-shared-app
- list:
elements:
- cluster: in-cluster
name: ic-rhoai-operator
repoURL: https://github.com/rh-aiservices-bu/parasol-insurance.git
targetRevision: dev
path: bootstrap/ic-rhoai-operator
- cluster: in-cluster
name: ic-rhoai-installation
repoURL: https://github.com/rh-aiservices-bu/parasol-insurance.git
targetRevision: dev
path: bootstrap/ic-rhoai-installation
- cluster: in-cluster
name: ic-shared-minio-app
repoURL: https://github.com/rh-aiservices-bu/parasol-insurance.git
targetRevision: dev
path: bootstrap/ic-shared-minio
- cluster: in-cluster
name: ic-shared-database-app
repoURL: https://github.com/rh-aiservices-bu/parasol-insurance.git
targetRevision: dev
path: bootstrap/ic-shared-database
- cluster: in-cluster
name: ic-shared-llm-app
repoURL: https://github.com/rh-aiservices-bu/parasol-insurance.git
targetRevision: dev
path: bootstrap/ic-shared-llm
- cluster: in-cluster
name: ic-shared-img-det
repoURL: https://github.com/rh-aiservices-bu/parasol-insurance.git
targetRevision: dev
path: bootstrap/ic-shared-img-det
- cluster: in-cluster
name: ic-rhoai-configuration
repoURL: https://github.com/rh-aiservices-bu/parasol-insurance.git
targetRevision: dev
path: bootstrap/ic-rhoai-configuration
- cluster: in-cluster
name: ic-user-projects
repoURL: https://github.com/rh-aiservices-bu/parasol-insurance.git
targetRevision: dev
path: bootstrap/ic-user-projects
- cluster: in-cluster
name: ic-shared-milvus
repoURL: https://github.com/rh-aiservices-bu/parasol-insurance.git
targetRevision: dev
path: bootstrap/ic-shared-milvus
- cluster: in-cluster
name: ic-shared-app
repoURL: https://github.com/rh-aiservices-bu/parasol-insurance.git
targetRevision: dev
path: bootstrap/ic-shared-app
template:
metadata:
name: '{{name}}'
name: "{{name}}"
namespace: openshift-gitops
labels:
component: bootstrap
purpose: '{{name}}'
purpose: "{{name}}"
spec:
project: default
source:
repoURL: '{{repoURL}}'
targetRevision: '{{targetRevision}}'
path: '{{path}}'
repoURL: "{{repoURL}}"
targetRevision: "{{targetRevision}}"
path: "{{path}}"
destination:
server: 'https://kubernetes.default.svc'
server: "https://kubernetes.default.svc"
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- RespectIgnoreDifferences=true
- RespectIgnoreDifferences=true
24 changes: 11 additions & 13 deletions bootstrap/ic-rhoai-configuration/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@ commonLabels:
component: ic-rhoai-configuration

resources:
# wave 0
- gp3-remove-default.yaml
- ceph-rbd-set-default.yaml
# wave 1
- workbench-imagestream.yaml
- workbench-vscode-is.yaml
- odhdashboardconfig.yaml
- accelerator-profile.yaml
# wave 2
- images-puller.yaml



# wave 0
- gp3-remove-default.yaml
- ceph-rbd-set-default.yaml
- namespace-notebooks.yaml
# wave 1
- workbench-imagestream.yaml
- workbench-vscode-is.yaml
- odhdashboardconfig.yaml
- accelerator-profile.yaml
# wave 2
- images-puller.yaml
6 changes: 6 additions & 0 deletions bootstrap/ic-rhoai-configuration/namespace-notebooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
annotations:
argocd.argoproj.io/sync-wave: "0"
name: rhods-notebooks
10 changes: 5 additions & 5 deletions bootstrap/ic-rhoai-configuration/workbench-imagestream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ metadata:
opendatahub.io/notebook-image-desc: >-
Jupyter notebook image with all the libraries needed for the OpenShift AI Insurance Claim Lab.
opendatahub.io/notebook-image-name: CUSTOM - Insurance Claim Processing Lab Workbench
opendatahub.io/notebook-image-order: '01'
opendatahub.io/notebook-image-order: "01"
opendatahub.io/notebook-image-url: >-
https://github.com/rh-aiservices-bu/parasol-insurance/tree/main/bootstrap/workbench-image
opendatahub.io/recommended-accelerators: '[]'
opendatahub.io/recommended-accelerators: "[]"
argocd.argoproj.io/sync-wave: "1"
name: ic-workbench
namespace: redhat-ods-applications
labels:
app.kubernetes.io/created-by: byon
opendatahub.io/dashboard: 'true'
opendatahub.io/notebook-image: 'true'
opendatahub.io/dashboard: "true"
opendatahub.io/notebook-image: "true"
spec:
lookupPolicy:
local: true
tags:
- name: '2.1.2'
- name: "2.1.2"
annotations:
opendatahub.io/notebook-python-dependencies: >-
[{"name":"PyTorch","version":"2.2.2"},{"name":"Langchain","version":"0.1.12"},{"name":"Ultralytics","version":"8.1.47"},]
Expand Down
37 changes: 37 additions & 0 deletions bootstrap/ic-rhoai-installation/dsci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
kind: DataScienceCluster
apiVersion: datasciencecluster.opendatahub.io/v1
metadata:
name: default
annotations:
argocd.argoproj.io/sync-wave: "1"
spec:
components:
codeflare:
devFlags: {}
managementState: Managed
dashboard:
devFlags: {}
managementState: Managed
datasciencepipelines:
devFlags: {}
managementState: Managed
kserve:
devFlags: {}
managementState: Managed
serving:
ingressGateway:
certificate:
type: OpenshiftDefaultIngress
managementState: Managed
name: knative-serving
modelmeshserving:
devFlags: {}
managementState: Managed
ray:
devFlags: {}
managementState: Managed
trustyai:
devFlags: {}
managementState: Removed
workbenches:
managementState: Managed
6 changes: 6 additions & 0 deletions bootstrap/ic-rhoai-installation/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
# wave 1
- dsci.yaml
8 changes: 8 additions & 0 deletions bootstrap/ic-rhoai-operator/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
# wave 0
- namespace.yaml
- operator-group.yaml
- subscription.yaml
9 changes: 9 additions & 0 deletions bootstrap/ic-rhoai-operator/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: Namespace
metadata:
annotations:
openshift.io/display-name: "Red Hat OpenShift AI"
argocd.argoproj.io/sync-wave: "0"
labels:
openshift.io/cluster-monitoring: "true"
name: redhat-ods-operator
7 changes: 7 additions & 0 deletions bootstrap/ic-rhoai-operator/operator-group.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: rhods-operator-group
namespace: redhat-ods-operator
annotations:
argocd.argoproj.io/sync-wave: "0"
13 changes: 13 additions & 0 deletions bootstrap/ic-rhoai-operator/subscription.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: rhods-operator
namespace: redhat-ods-operator
annotations:
argocd.argoproj.io/sync-wave: "0"
spec:
channel: stable-2.13
installPlanApproval: Automatic
name: rhods-operator
source: redhat-operators
sourceNamespace: openshift-marketplace
2 changes: 1 addition & 1 deletion bootstrap/ic-shared-img-det/add-model-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: Job
metadata:
name: add-model-job
annotations:
argocd.argoproj.io/sync-wave: "2"
argocd.argoproj.io/sync-wave: "3"
spec:
backoffLimit: 4
template:
Expand Down
2 changes: 0 additions & 2 deletions bootstrap/ic-shared-img-det/create-data-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ metadata:
name: create-data-connection
annotations:
argocd.argoproj.io/sync-wave: "1"
argocd.argoproj.io/hook: Sync
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation
spec:
backoffLimit: 4
template:
Expand Down
5 changes: 5 additions & 0 deletions bootstrap/ic-shared-img-det/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@ commonLabels:
namespace: ic-shared-img-det

resources:
# wave 0
- project.yaml
# wave 1
- setup-serviceaccount.yaml
# wave 2
- create-data-connection.yaml
# wave 3
- add-model-job.yaml
- runtime.yaml
# wave 4
- model.yaml
# pinger is not ready yet
# - pinger.yaml
24 changes: 1 addition & 23 deletions bootstrap/ic-shared-img-det/model.yaml
Original file line number Diff line number Diff line change
@@ -1,31 +1,9 @@
# ---
# apiVersion: serving.kserve.io/v1beta1
# kind: InferenceService
# metadata:
# annotations:
# openshift.io/display-name: accident
# serving.kserve.io/deploymentMode: ModelMesh
# argocd.argoproj.io/sync-wave: "3"
# argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
# labels:
# name: accident
# opendatahub.io/dashboard: "true"
# name: accident
# spec:
# predictor:
# model:
# modelFormat:
# name: onnx
# version: "1"
# runtime: triton
# storage:
# key: aws-connection-minio
# path: accident/
---
apiVersion: serving.kserve.io/v1beta1
kind: InferenceService
metadata:
annotations:
argocd.argoproj.io/sync-wave: "4"
openshift.io/display-name: img-det
serving.kserve.io/deploymentMode: ModelMesh
labels:
Expand Down
Loading
Loading