jupyterhub
by [riftbit]
JupyterHub brings the power of notebooks to groups of users. It gives users access to computational environments and resources without burdening the users with installation and maintenance tasks
About this chart
JupyterHub
JupyterHub is a multi-user version of the notebook designed for companies, classrooms and research labs.
TL;DR
$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/jupyterhub
Introduction
Bitnami charts for Helm are carefully engineered, actively maintained and are the quickest and easiest way to deploy containers on a Kubernetes cluster that are ready to handle production workloads.
This chart bootstraps a JupyterHub Deployment in a Kubernetes cluster using the Helm package manager.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters. This Helm chart has been tested on top of Bitnami Kubernetes Production Runtime (BKPR). Deploy BKPR to get automated TLS certificates, logging and monitoring for your applications.
Learn more about the default configuration of the chart.
Prerequisites
- Kubernetes 1.12+
- Helm 3.1.0
- PV provisioner support in the underlying infrastructure
Installing the Chart
To install the chart with the release name my-release:
$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/jupyterhub
These commands deploy JupyterHub on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release helm release:
$ helm uninstall my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Override Kubernetes version | "" |
nameOverride | String to partially override common.names.fullname (will maintain the release name) | "" |
fullnameOverride | String to fully override common.names.fullname | "" |
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
extraDeploy | Array of extra objects to deploy with the release | [] |
Hub deployment parameters
| Name | Description | Value |
|---|---|---|
hub.image.registry | Hub image registry | docker.io |
hub.image.repository | Hub image repository | bitnami/jupyterhub |
hub.image.tag | Hub image tag (immutabe tags are recommended) | 1.4.2-debian-10-r65 |
hub.image.pullPolicy | Hub image pull policy | IfNotPresent |
hub.image.pullSecrets | Hub image pull secrets | [] |
hub.startupProbe.enabled | Enable startupProbe | true |
hub.startupProbe.initialDelaySeconds | Initial delay seconds for startupProbe | 10 |
hub.startupProbe.periodSeconds | Period seconds for startupProbe | 10 |
hub.startupProbe.timeoutSeconds | Timeout seconds for startupProbe | 3 |
hub.startupProbe.failureThreshold | Failure threshold for startupProbe | 30 |
hub.startupProbe.successThreshold | Success threshold for startupProbe | 1 |
hub.livenessProbe.enabled | Enable livenessProbe | true |
hub.livenessProbe.initialDelaySeconds | Initial delay seconds for livenessProbe | 10 |
hub.livenessProbe.periodSeconds | Period seconds for livenessProbe | 10 |
hub.livenessProbe.timeoutSeconds | Timeout seconds for livenessProbe | 3 |
hub.livenessProbe.failureThreshold | Failure threshold for livenessProbe | 30 |
hub.livenessProbe.successThreshold | Success threshold for livenessProbe | 1 |
hub.readinessProbe.enabled | Enable readinessProbe | true |
hub.readinessProbe.initialDelaySeconds | Initial delay seconds for readinessProbe | 10 |
hub.readinessProbe.periodSeconds | Period seconds for readinessProbe | 10 |
hub.readinessProbe.timeoutSeconds | Timeout seconds for readinessProbe | 3 |
hub.readinessProbe.failureThreshold | Failure threshold for readinessProbe | 30 |
hub.readinessProbe.successThreshold | Success threshold for readinessProbe | 1 |
hub.baseUrl | Hub base URL | / |
hub.adminUser | Hub Dummy authenticator admin user | user |
hub.password | Hub Dummy authenticator password | "" |
hub.configuration | Hub configuration file (to be used by jupyterhub_config.py) | "" |
hub.containerPort | Hub container port | 8081 |
hub.existingConfigmap | Configmap with Hub init scripts (replaces the scripts in templates/hub/configmap.yml) | "" |
hub.existingSecret | Secret with hub configuration (replaces the hub.configuration value) and proxy token | "" |
hub.command | Override Hub default command | [] |
hub.args | Override Hub default args | [] |
hub.pdb.create | Deploy Hub PodDisruptionBudget | false |
hub.pdb.minAvailable | Set minimum available hub instances | "" |
hub.pdb.maxUnavailable | Set maximum available hub instances | "" |
hub.priorityClassName | Hub pod priority class name | "" |
hub.hostAliases | Add deployment host aliases | [] |
hub.resources.limits | The resources limits for the container | {} |
hub.resources.requests | The requested resources for the container | {} |
hub.containerSecurityContext.enabled | Enabled Hub containers' Security Context | true |
hub.containerSecurityContext.runAsUser | Set Hub container's Security Context runAsUser | 1000 |
hub.containerSecurityContext.runAsNonRoot | Set Hub container's Security Context runAsNonRoot | true |
hub.podSecurityContext.enabled | Enabled Hub pods' Security Context | true |
hub.podSecurityContext.fsGroup | Set Hub pod's Security Context fsGroup | 1001 |
hub.podAffinityPreset | Pod affinity preset. Ignored if affinity is set. Allowed values: soft or hard | "" |
hub.podAntiAffinityPreset | Pod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hard | soft |
hub.nodeAffinityPreset.type | Node affinity preset type. Ignored if affinity is set. Allowed values: soft or hard | "" |
hub.nodeAffinityPreset.key | Node label key to match. Ignored if affinity is set | "" |
hub.nodeAffinityPreset.values | Node label values to match. Ignored if affinity is set | [] |
hub.affinity | Affinity for pod assignment. | {} |
hub.nodeSelector | Node labels for pod assignment. | {} |
hub.tolerations | Tolerations for pod assignment. | [] |
hub.podLabels | Pod extra labels | {} |
hub.podAnnotations | Annotations for server pods. | {} |
hub.lifecycleHooks | LifecycleHooks for the hub container to automate configuration before or after startup | {} |
hub.customStartupProbe | Override default startup probe | {} |
hub.customLivenessProbe | Override default liveness probe | {} |
hub.customReadinessProbe | Override default readiness probe | {} |
hub.updateStrategy.type | Update strategy - only really applicable for deployments with RWO PVs attached | RollingUpdate |
hub.extraEnvVars | Add extra environment variables to the Hub container | [] |
hub.extraEnvVarsCM | Name of existing ConfigMap containing extra env vars | "" |
hub.extraEnvVarsSecret | Name of existing Secret containing extra env vars | "" |
hub.extraVolumes |
Deploy jupyterhub with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has jupyterhub on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartjupyterhub is pinned at v0.1.19 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply