jupyterhub

by [riftbit]

Helm chartv0.1.19App 1.4.2Verified publisher

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

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
kubeVersionOverride Kubernetes version""
nameOverrideString to partially override common.names.fullname (will maintain the release name)""
fullnameOverrideString to fully override common.names.fullname""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
extraDeployArray of extra objects to deploy with the release[]

Hub deployment parameters

NameDescriptionValue
hub.image.registryHub image registrydocker.io
hub.image.repositoryHub image repositorybitnami/jupyterhub
hub.image.tagHub image tag (immutabe tags are recommended)1.4.2-debian-10-r65
hub.image.pullPolicyHub image pull policyIfNotPresent
hub.image.pullSecretsHub image pull secrets[]
hub.startupProbe.enabledEnable startupProbetrue
hub.startupProbe.initialDelaySecondsInitial delay seconds for startupProbe10
hub.startupProbe.periodSecondsPeriod seconds for startupProbe10
hub.startupProbe.timeoutSecondsTimeout seconds for startupProbe3
hub.startupProbe.failureThresholdFailure threshold for startupProbe30
hub.startupProbe.successThresholdSuccess threshold for startupProbe1
hub.livenessProbe.enabledEnable livenessProbetrue
hub.livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe10
hub.livenessProbe.periodSecondsPeriod seconds for livenessProbe10
hub.livenessProbe.timeoutSecondsTimeout seconds for livenessProbe3
hub.livenessProbe.failureThresholdFailure threshold for livenessProbe30
hub.livenessProbe.successThresholdSuccess threshold for livenessProbe1
hub.readinessProbe.enabledEnable readinessProbetrue
hub.readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe10
hub.readinessProbe.periodSecondsPeriod seconds for readinessProbe10
hub.readinessProbe.timeoutSecondsTimeout seconds for readinessProbe3
hub.readinessProbe.failureThresholdFailure threshold for readinessProbe30
hub.readinessProbe.successThresholdSuccess threshold for readinessProbe1
hub.baseUrlHub base URL/
hub.adminUserHub Dummy authenticator admin useruser
hub.passwordHub Dummy authenticator password""
hub.configurationHub configuration file (to be used by jupyterhub_config.py)""
hub.containerPortHub container port8081
hub.existingConfigmapConfigmap with Hub init scripts (replaces the scripts in templates/hub/configmap.yml)""
hub.existingSecretSecret with hub configuration (replaces the hub.configuration value) and proxy token""
hub.commandOverride Hub default command[]
hub.argsOverride Hub default args[]
hub.pdb.createDeploy Hub PodDisruptionBudgetfalse
hub.pdb.minAvailableSet minimum available hub instances""
hub.pdb.maxUnavailableSet maximum available hub instances""
hub.priorityClassNameHub pod priority class name""
hub.hostAliasesAdd deployment host aliases[]
hub.resources.limitsThe resources limits for the container{}
hub.resources.requestsThe requested resources for the container{}
hub.containerSecurityContext.enabledEnabled Hub containers' Security Contexttrue
hub.containerSecurityContext.runAsUserSet Hub container's Security Context runAsUser1000
hub.containerSecurityContext.runAsNonRootSet Hub container's Security Context runAsNonRoottrue
hub.podSecurityContext.enabledEnabled Hub pods' Security Contexttrue
hub.podSecurityContext.fsGroupSet Hub pod's Security Context fsGroup1001
hub.podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed values: soft or hard""
hub.podAntiAffinityPresetPod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hardsoft
hub.nodeAffinityPreset.typeNode affinity preset type. Ignored if affinity is set. Allowed values: soft or hard""
hub.nodeAffinityPreset.keyNode label key to match. Ignored if affinity is set""
hub.nodeAffinityPreset.valuesNode label values to match. Ignored if affinity is set[]
hub.affinityAffinity for pod assignment.{}
hub.nodeSelectorNode labels for pod assignment.{}
hub.tolerationsTolerations for pod assignment.[]
hub.podLabelsPod extra labels{}
hub.podAnnotationsAnnotations for server pods.{}
hub.lifecycleHooksLifecycleHooks for the hub container to automate configuration before or after startup{}
hub.customStartupProbeOverride default startup probe{}
hub.customLivenessProbeOverride default liveness probe{}
hub.customReadinessProbeOverride default readiness probe{}
hub.updateStrategy.typeUpdate strategy - only really applicable for deployments with RWO PVs attachedRollingUpdate
hub.extraEnvVarsAdd extra environment variables to the Hub container[]
hub.extraEnvVarsCMName of existing ConfigMap containing extra env vars""
hub.extraEnvVarsSecretName 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartjupyterhub is pinned at v0.1.19 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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