diff --git a/charts/incubator/jupyter/.helmignore b/charts/incubator/jupyter/.helmignore new file mode 100644 index 00000000000..77ca5567b26 --- /dev/null +++ b/charts/incubator/jupyter/.helmignore @@ -0,0 +1,30 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ +# OWNERS file for Kubernetes +OWNERS +# helm-docs templates +*.gotmpl +# docs folder +/docs +# icon +icon.png diff --git a/charts/incubator/jupyter/CHANGELOG.md b/charts/incubator/jupyter/CHANGELOG.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/charts/incubator/jupyter/Chart.yaml b/charts/incubator/jupyter/Chart.yaml new file mode 100644 index 00000000000..82085ad1949 --- /dev/null +++ b/charts/incubator/jupyter/Chart.yaml @@ -0,0 +1,29 @@ +apiVersion: v2 +appVersion: "latest" +dependencies: + - name: common + repository: https://library-charts.truecharts.org + version: 10.5.7 +deprecated: false +description: "Jupyter a web based IDE" +home: https://truecharts.org/docs/charts/incubator/jupyter +icon: https://truecharts.org/img/hotlink-ok/chart-icons/jupyter.png +keywords: + - Jupyter + - Notebook + - Lab +kubeVersion: ">=1.16.0-0" +maintainers: + - email: info@truecharts.org + name: TrueCharts + url: https://truecharts.org +name: jupyter +sources: + - https://github.com/truecharts/charts/tree/master/charts/incubator/juypter + - https://github.com/jupyter/docker-stacks +type: application +version: 0.0.3 +annotations: + truecharts.org/catagories: | + - Cloud + truecharts.org/SCALE-support: "true" diff --git a/charts/incubator/jupyter/README.md b/charts/incubator/jupyter/README.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/charts/incubator/jupyter/icon.png b/charts/incubator/jupyter/icon.png new file mode 100644 index 00000000000..1d4a4cac638 Binary files /dev/null and b/charts/incubator/jupyter/icon.png differ diff --git a/charts/incubator/jupyter/questions.yaml b/charts/incubator/jupyter/questions.yaml new file mode 100644 index 00000000000..405dff47059 --- /dev/null +++ b/charts/incubator/jupyter/questions.yaml @@ -0,0 +1,170 @@ +# Include{groups} +portals: + open: +# Include{portalLink} +questions: +# Include{global} + - variable: imageSelector + group: Container Image + label: Select Image + schema: + type: string + default: image + enum: + - value: image + description: Base Notebook + - value: imageMinimal + description: Minimal Notebook + - value: imageR + description: R Notebook + - value: imageScipy + description: Scipy Notebook + - value: imageTensorflow + description: Tensorflow Notebook + - value: imageDataScience + description: Data Science Notebook + - value: imagePySpark + description: Pyspark Notebook + - value: imageAllSpark + description: All Spark Notebook +# Include{controller} +# Include{controllerDeployment} +# Include{replicas} +# Include{replica1} +# Include{strategy} +# Include{recreate} +# Include{controllerExpert} +# Include{controllerExpertExtraArgs} + - variable: jupyter + group: Container Configuration + label: Jupyter Configuration + schema: + additional_attrs: true + type: dict + attrs: + - variable: jupyter_cmd + label: Jupyter Start Command + description: Choose the start up command for Jupyter + schema: + type: string + default: lab + enum: + - value: lab + description: Lab + - value: notebook + description: Notebook + - value: nbclassic + description: Notebook Classic + - value: server + description: Server + - variable: restartable + label: Restartable + description: Choose whether restarting Jupyter will kill the container or not + schema: + type: boolean + default: true +# Include{containerConfig} +# Include{serviceRoot} + - variable: main + label: Main Service + description: The Primary service on which the healthcheck runs, often the webUI + schema: + additional_attrs: true + type: dict + attrs: +# Include{serviceSelectorSimple} +# Include{serviceSelectorExtras} + - variable: main + label: Main Service Port Configuration + schema: + additional_attrs: true + type: dict + attrs: + - variable: port + label: Port + description: This port exposes the container port on the service + schema: + type: int + default: 10300 + required: true +# Include{advancedPortHTTP} + - variable: targetPort + label: Target Port + description: The internal(!) port on the container the Application runs on + schema: + type: int + default: 8888 +# Include{serviceExpertRoot} + default: false +# Include{serviceExpert} +# Include{serviceList} +# Include{persistenceRoot} + - variable: data + label: data Storage + description: Container Data Path + schema: + additional_attrs: true + type: dict + attrs: +# Include{persistenceBasic} +# Include{persistenceAdvanced} +# Include{persistenceList} +# Include{ingressRoot} + - variable: main + label: Main Ingress + schema: + additional_attrs: true + type: dict + attrs: +# Include{ingressDefault} +# Include{ingressTLS} +# Include{ingressTraefik} +# Include{ingressExpert} +# Include{ingressList} +# Include{security} +# Include{securityContextAdvancedRoot} + - variable: privileged + label: Privileged mode + schema: + type: boolean + default: false + - variable: readOnlyRootFilesystem + label: ReadOnly Root Filesystem + schema: + type: boolean + default: false + - variable: allowPrivilegeEscalation + label: Allow Privilege Escalation + schema: + type: boolean + default: false + - variable: runAsNonRoot + label: runAsNonRoot + schema: + type: boolean + default: false +# Include{securityContextAdvanced} +# Include{podSecurityContextRoot} + - variable: runAsUser + label: runAsUser + description: The UserID of the user running the application + schema: + type: int + default: 0 + - variable: runAsGroup + label: runAsGroup + description: The groupID this App of the user running the application + schema: + type: int + default: 0 + - variable: fsGroup + label: fsGroup + description: The group that should own ALL storage. + schema: + type: int + default: 568 +# Include{podSecurityContextAdvanced} +# Include{resources} +# Include{advanced} +# Include{addons} +# Include{documentation} diff --git a/charts/incubator/jupyter/templates/common.yaml b/charts/incubator/jupyter/templates/common.yaml new file mode 100644 index 00000000000..cbf66c20818 --- /dev/null +++ b/charts/incubator/jupyter/templates/common.yaml @@ -0,0 +1,2 @@ +{{/* Render the templates */}} +{{ include "tc.common.loader.all" . }} diff --git a/charts/incubator/jupyter/values.yaml b/charts/incubator/jupyter/values.yaml new file mode 100644 index 00000000000..3aa11c3fa7f --- /dev/null +++ b/charts/incubator/jupyter/values.yaml @@ -0,0 +1,68 @@ +image: + repository: tccr.io/truecharts/jupyter-base + pullPolicy: IfNotPresent + tag: v2022-09@sha256:5790c30b0fddec69fc42f41cb71c26cea4cc0e5e02c4a5f30fe23d5a42f05793 +imageMinimal: + repository: tccr.io/truecharts/jupyter-minimal + pullPolicy: IfNotPresent + tag: v2022-09@sha256:08d2741d6995c6c78332292f76409cfa47f31a5a02c24c5271ebf6c1052deb20 +imageR: + repository: tccr.io/truecharts/jupyter-r + pullPolicy: IfNotPresent + tag: v2022-09@sha256:86bbe2fc225742e9a50a0755eacea2aa152f6ea2092e2a1501080a6a26276883 +imageScipy: + repository: tccr.io/truecharts/jupyter-scipy + pullPolicy: IfNotPresent + tag: v2022-09@sha256:ff4cec114bfdf76e69b4f09d255c55bf7127e1e7e9f57a1cef23ea11f151f0fc +imageTensorflow: + repository: tccr.io/truecharts/jupyter-tensorflow + pullPolicy: IfNotPresent + tag: v2022-09@sha256:0ed38305cade1f9e328985d42d604ca186a8d01e54b6249a7a63c0cc44ff872c +imageDataScience: + repository: tccr.io/truecharts/jupyter-datascience + pullPolicy: IfNotPresent + tag: v2022-09@sha256:79c7e225a20c12535748e37244e25c2cbf32add9b7d22714c0f463513d158b7f +imagePySpark: + repository: tccr.io/truecharts/jupyter/pyspark + pullPolicy: IfNotPresent + tag: v2022-09@sha256:c7252503a9a0b75ad72cfc4fc3091d28383c71e1a8707b7f6f74dc1fd2179404 +imageAllSpark: + repository: tccr.io/truecharts/jupyter-all-spark + pullPolicy: IfNotPresent + tag: v2022-09@sha256:557256ac5d530773f41ee1493cbce77292b3a0cfa40531a1113951fc090cc826 + +securityContext: + readOnlyRootFilesystem: false + runAsNonRoot: false + +podSecurityContext: + runAsUser: 0 + runAsGroup: 0 + +jupyter: + jupyter_cmd: lab + restartable: true + +env: + NB_UID: "{{ .Values.security.PUID }}" + NB_GID: "{{ .Values.podSecurityContext.fsGroup }}" + NB_UMASK: "{{ .Values.security.UMASK }}" + # User Defined + DOCKER_STACKS_JUPYTER_CMD: "{{ .Values.jupyter.jupyter_cmd }}" + RESTARTABLE: '{{ ternary "yes" "no" .Values.jupyter.restartable }}' + +service: + main: + ports: + main: + port: 10300 + protocol: HTTP + targetPort: 8888 + +persistence: + data: + enabled: true + mountPath: /home/jovyan/work + +portal: + enabled: true diff --git a/cspell.config.yaml b/cspell.config.yaml index 7fa726ee388..73078c6b391 100644 --- a/cspell.config.yaml +++ b/cspell.config.yaml @@ -36,6 +36,7 @@ words: - csgo - cuda - daemonset + - datascience - dbcreds - dbengine - ddns @@ -81,6 +82,7 @@ words: - jacobalberty - jailman - javaprefs + - jovyan - keepalive - killswitch - kjeld @@ -125,6 +127,7 @@ words: - mongosh - mountpoint - multihost + - nbclassic - neko - netdata - networkv @@ -157,6 +160,7 @@ words: - putregexhere - pvcname - pvcpath + - Pyspark - qbitmanage - quotum - radarr @@ -178,6 +182,7 @@ words: - rtmps - sabnzbd - schouten + - Scipy - selfsigned - serverconfig - serverstransports