Skip to content

Commit

Permalink
update: rhoai
Browse files Browse the repository at this point in the history
  • Loading branch information
codekow committed Nov 1, 2024
1 parent 48b5999 commit 4c31b99
Show file tree
Hide file tree
Showing 9 changed files with 117 additions and 48 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# notebook-pod-sizes

## Purpose

This component is designed help admins configure the default sizes users can select from when creating a new workbenches.

## Usage

This component can be added to a base by adding the `components` section to your overlay `kustomization.yaml` file:

```yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../base

components:
- ../../components/notebook-pod-sizes
```
You can customize the pod sizes by updating the [patch-rhoai-dashboard.yaml](./patch-rhoai-dashboard.yaml) file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apiVersion: opendatahub.io/v1alpha
kind: OdhDashboardConfig
metadata:
name: odh-dashboard-config
spec:
notebookSizes:
- name: Small
resources:
limits:
cpu: '2'
memory: 8Gi
requests:
cpu: '1'
memory: 8Gi
- name: Medium
resources:
limits:
cpu: '6'
memory: 24Gi
requests:
cpu: '3'
memory: 24Gi
- name: Large
resources:
limits:
cpu: '14'
memory: 56Gi
requests:
cpu: '7'
memory: 56Gi
- name: X Large
resources:
limits:
cpu: '30'
memory: 120Gi
requests:
cpu: '15'
memory: 120Gi
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component

commonAnnotations:
argocd.argoproj.io/sync-options: ServerSideApply=true

patches:
- path: patch-rhoai-dashboard.yaml
target:
kind: OdhDashboardConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: opendatahub.io/v1alpha
kind: OdhDashboardConfig
metadata:
name: odh-dashboard-config
spec:
notebookSizes:
# kludge: everyone picks the largest, why offer more than one?
- name: Demo / Workshop
resources:
limits:
cpu: '6'
memory: 24Gi
requests:
cpu: '3'
memory: 24Gi
- name: Small
resources:
limits:
cpu: '2'
memory: 8Gi
requests:
cpu: '1'
memory: 8Gi

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ components:
- ../../components/fix-dashboard-magic
- ../../components/fix-kubeadmin-cluster-admin
- ../../components/idle-notebook-culling
- ../../components/model-server-pod-sizes
- ../../components/model-server-pod-sizes-default
- ../../components/notebook-pod-sizes
- ../../components/nvidia-gpu-accelerator-profile
- ../../components/runtime-template-triton
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../base

components:
- ../../components/auth-with-authorino
- ../../components/components-distributed-compute
- ../../components/components-serving
- ../../components/components-training
- ../../components/config-access-everyone
# - ../../components/config-access-group
- ../../components/default-notebook-pvc-size
- ../../components/disable-telemetry
- ../../components/fix-dashboard-magic
- ../../components/fix-kubeadmin-cluster-admin
- ../../components/idle-notebook-culling
- ../../components/model-server-pod-sizes
- ../../components/notebook-pod-sizes-workshop
- ../../components/nvidia-gpu-accelerator-profile
- ../../components/runtime-template-triton

0 comments on commit 4c31b99

Please sign in to comment.