-
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
32 changed files
with
355 additions
and
584 deletions.
There are no files selected for viewing
93 changes: 0 additions & 93 deletions
93
components/app-configs/notebook-nvidia-nemo/deployment.yaml
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
components/app-configs/notebook-nvidia-nemo/kustomization.yaml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
76 changes: 76 additions & 0 deletions
76
components/app-configs/notebook-standalone/base/deployment.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,76 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: notebook | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "1" | ||
# image.openshift.io/triggers: >- | ||
# [{"from":{"kind":"ImageStreamTag","name":"notebook:latest"},"fieldPath":"spec.template.spec.containers[?(@.name==\"notebook\")].image","paused":"false"}] | ||
spec: | ||
replicas: 1 | ||
strategy: | ||
type: Recreate | ||
template: | ||
spec: | ||
containers: | ||
- name: notebook | ||
image: docker.io/kubeflownotebookswg/jupyter:latest | ||
env: | ||
- name: HOME | ||
value: /workspace | ||
ports: | ||
- containerPort: 8888 | ||
protocol: TCP | ||
name: notebook | ||
- containerPort: 8000 | ||
protocol: TCP | ||
name: demo | ||
resources: | ||
limits: | ||
cpu: '2' | ||
memory: 8Gi | ||
requests: | ||
cpu: 500m | ||
memory: 8Gi | ||
# livenessProbe: | ||
# httpGet: | ||
# path: / | ||
# port: http | ||
# scheme: HTTP | ||
# timeoutSeconds: 5 | ||
# periodSeconds: 5 | ||
# successThreshold: 1 | ||
# failureThreshold: 3 | ||
readinessProbe: | ||
httpGet: | ||
path: / | ||
port: notebook | ||
scheme: HTTP | ||
timeoutSeconds: 1 | ||
periodSeconds: 10 | ||
successThreshold: 1 | ||
failureThreshold: 3 | ||
startupProbe: | ||
httpGet: | ||
path: / | ||
port: notebook | ||
scheme: HTTP | ||
timeoutSeconds: 1 | ||
periodSeconds: 5 | ||
successThreshold: 1 | ||
failureThreshold: 10 | ||
volumeMounts: | ||
- name: shm | ||
mountPath: /dev/shm | ||
- name: home | ||
mountPath: /workspace | ||
subPath: data | ||
volumes: | ||
- name: shm | ||
emptyDir: | ||
medium: Memory | ||
sizeLimit: 512Mi | ||
- name: home | ||
persistentVolumeClaim: | ||
claimName: notebook |
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
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
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
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
69 changes: 69 additions & 0 deletions
69
components/app-configs/notebook-standalone/base/template.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,69 @@ | ||
--- | ||
kind: Template | ||
apiVersion: template.openshift.io/v1 | ||
labels: | ||
template: standalone-notebook | ||
app.kubernetes.io/part-of: standalone-notebook | ||
app.kubernetes.io/component: ide | ||
metadata: | ||
name: standalone-notebook | ||
labels: | ||
template: standalone-notebook | ||
annotations: | ||
openshift.io/display-name: A Standalone Jupyter Notebook | ||
openshift.io/provider-display-name: Community | ||
description: Data Science Notebook in OpenShift | ||
iconClass: icon-python | ||
tags: python | ||
openshift.io/documentation-url: "https://github.com/redhat-na-ssa/demo-ai-gitops-catalog" | ||
openshift.io/support-url: "https://github.com/redhat-na-ssa/demo-ai-gitops-catalog/issues" | ||
template.openshift.io/bindable: "false" | ||
parameters: | ||
- name: APPLICATION_NAME | ||
displayName: Application Name | ||
required: true | ||
value: standalone-notebook | ||
- name: VOLUME_SIZE | ||
displayName: Volume Size | ||
value: 5Gi | ||
required: true | ||
- name: NOTEBOOK_MEM_LIMIT | ||
displayName: Notebook Memory Limit | ||
value: 1792Mi | ||
required: true | ||
description: Consider the pod quota limits on your namespace | ||
- name: NOTEBOOK_CPU_LIMIT | ||
displayName: Notebook CPU Limit | ||
value: 1700m | ||
required: true | ||
description: Consider the pod quota limits on your namespace | ||
- name: WEBDAV_MEM_LIMIT | ||
displayName: WebDav Memory Limit | ||
value: 256M | ||
required: true | ||
description: Consider the pod quota limits on your namespace | ||
- name: WEBDAV_CPU_LIMIT | ||
displayName: WebDav CPU Limit | ||
value: 300m | ||
required: true | ||
description: Consider the pod quota limits on your namespace | ||
- name: NOTEBOOK_PASSWORD | ||
displayName: Notebook Password | ||
from: "[A-Za-z0-9]{32}" | ||
generate: expression | ||
required: true | ||
description: Password for Notebook | ||
- name: NOTEBOOK_IMAGE | ||
description: The base image for notebook | ||
value: quay.io/opendatahub-contrib/workbench-images:code-server-ubi9-py39_2023b_latest | ||
required: true | ||
- name: WEBDAV_NODE_IMAGE | ||
description: The base image for WebDav | ||
value: quay.io/codekow/webdav:latest | ||
required: true | ||
message: |- | ||
The following application has been created in your project: ${APPLICATION_NAME}. | ||
For more information about using this template, including OpenShift considerations, | ||
see "https://github.com/redhat-na-ssa/demo-ai-gitops-catalog" | ||
objects: [] |
7 changes: 7 additions & 0 deletions
7
components/app-configs/notebook-standalone/components/code-server/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,7 @@ | ||
apiVersion: kustomize.config.k8s.io/v1alpha1 | ||
kind: Component | ||
|
||
patches: | ||
- path: patch-deployment.yaml | ||
target: | ||
kind: Deployment |
Oops, something went wrong.