jupyterhub

by joaquinito2051

Helm chartv3.0.1App 3.0.0

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 packaged by Bitnami

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.

Overview of JupyterHub

Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

Azure-ready Charts with Containers from marketplace.azurecr.io

This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.

$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo

TL;DR

$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/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.

Learn more about the default configuration of the chart.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.0+
  • PV provisioner support in the underlying infrastructure

Installing the Chart

To install the chart with the release name my-release:

$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/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""
clusterDomainKubernetes Cluster Domaincluster.local
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
extraDeployArray of extra objects to deploy with the release[]
diagnosticMode.enabledEnable diagnostic mode (all probes will be disabled and the command will be overridden)false
diagnosticMode.commandCommand to override all containers in the the deployment(s)/daemonset(s)["sleep"]
diagnosticMode.argsArgs to override all containers in the the deployment(s)/daemonset(s)["infinity"]

Hub deployment parameters

NameDescriptionValue
hub.image.registryHub image registrydocker.io
hub.image.repositoryHub image repositorybitnami/jupyterhub
hub.image.tagHub image tag (immutable tags are recommended)3.0.0-debian-11-r0
hub.image.digestHub image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
hub.image.pullPolicyHub image pull policyIfNotPresent
hub.image.pullSecretsHub image pull secrets[]
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.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.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.containerPorts.httpHub container port8081
hub.startupProbe.enabledEnable startupProbe on Hub containerstrue
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 livenessProbe on Hub containerstrue
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 readinessProbe on Hub containerstrue
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.customStartupProbeOverride default startup probe{}
hub.customLivenessProbeOverride default liveness probe{}
hub.customReadinessProbeOverride default readiness probe{}
hub.resources.limitsThe resources limits for the Hub containers{}
hub.resources.requestsThe requested resources for the Hub containers{}
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

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 v3.0.1 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