gaffer-jhub

by GCHQ

Helm chartv2.2.1

A Jupyter Hub instance, with Gaffer integrations

About this chart

JupyterHub with Gaffer integrations

In this directory you can find the Helm charts required to deploy Gaffer's JupyterHub Options Server alongside the JupyterHub Chart. The 'options server' works in cooperation with Jupyter Hub to allow pre-configured notebook instances to be provisioned for users so that they can easily interact with HDFS and Gaffer instances.

This chart adds the following additional properties to jupyterhub.singleuser.profileList:

PropertyDescriptionDefault
enable_hdfsIf true, users will be prompted to select which HDFS instance they want to interact with when spawning a new notebook. The options server will provision a ConfigMap, that will be mounted into the notebook pod at /etc/hadoop/conf, containing Hadoop configuration files to connect to that instance by default.false
enable_gafferIf true, users will be prompted to select which Gaffer instance they want to query when spawning a new notebook. The options server will provision a ConfigMap, that will be mounted into the notebook pod at /etc/gaffer, containing the Gaffer configuration files (schema, store properties, graph config) for that instance.false
enable_sparkIf true, the options server will provision a ConfigMap, that will be mounted into the notebook pod at /opt/spark/conf, containing Spark configuration that causes Executors to be deployed as Pods inside the Kubernetes cluster. Users will be allowed to specify the amount of resources (cpu, mem) that each Spark executor should request when they are spawning a new notebook.false
spark_imageSets the container image to be used for Spark Executors. Required if enable_spark == true.nil
spark_ingress_hostIf set, the options server will provision an Ingress resource for this host that allows external access to the Spark web UI. The value can contain the following template variables: {{USERNAME}} {{SERVERNAME}}nil

Deployment

There are guides for deploying this chart on: There are guides for deploying this chart on, they should be read in the following order:

  • Provision and configure a local Kubernetes cluster
  • Deploy JupyterHub with Gaffer on a Kubernetes cluster

Deploy gaffer-jhub with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has gaffer-jhub 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 chartgaffer-jhub is pinned at v2.2.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