-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
117 additions
and
48 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
...erators/rhods-operator/instance/components/notebook-pod-sizes-default/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
File renamed without changes.
38 changes: 38 additions & 0 deletions
38
.../rhods-operator/instance/components/notebook-pod-sizes-default/patch-rhoai-dashboard.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
File renamed without changes.
10 changes: 10 additions & 0 deletions
10
...erators/rhods-operator/instance/components/notebook-pod-sizes-workshop/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
24 changes: 24 additions & 0 deletions
24
...rhods-operator/instance/components/notebook-pod-sizes-workshop/patch-rhoai-dashboard.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
47 changes: 0 additions & 47 deletions
47
...perators/rhods-operator/instance/components/notebook-pod-sizes/patch-rhoai-dashboard.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
components/operators/rhods-operator/instance/overlays/workshop/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |