Skip to content

JupyterHub Platform Notes

Interactive Diagram

새 탭 ↗

JupyterHub is documented here as a standalone interactive development platform that runs alongside Kubeflow, not as part of the Kubeflow Notebooks control plane. In this deployment it lives in its own jupyterhub namespace, authenticates with a shared development password, lets users choose a Jupyter Docker Stack profile when spawning a server, and keeps each user’s workspace on a persistent volume.

ItemValue
VersionJupyterHub Helm chart v4.4.0, Hub image v4.4.0
Official docsZero to JupyterHub
Chart sourcebase/jupyterhub/charts/jupyterhub-4.4.0
Dev overlayoverlays/dev/jupyterhub

JupyterHub is not part of the Kubeflow Notebooks control plane. Kubeflow Notebooks creates a Notebook custom resource and a StatefulSet in a Profile namespace and integrates them with the Dashboard and the Istio gateway. JupyterHub, by contrast, runs the Hub, the Configurable HTTP Proxy, and KubeSpawner in its own namespace and creates a single-user Pod for each logged-in account directly in that same namespace.

  • the Hub, proxy, and KubeSpawner run entirely in the jupyterhub namespace
  • single-user servers are created directly by JupyterHub in that namespace
  • authentication is handled by JupyterHub itself, not by Dex, oauth2-proxy, or Kubeflow Dashboard SSO
  • the service is exposed on its own hostname and should be treated as a separate browser-facing application

The current overlay uses DummyAuthenticator, which is meant for development environments. Only the admin account that logs in with the designated shared password has administrator privileges, and the deployment is not connected to Dex, oauth2-proxy, Kubeflow Profiles, or Kubeflow Dashboard SSO. This deployment therefore must not be used as a tenant identity or production authentication boundary. It is convenient for development and operator testing, but it should not be treated as a tenant-isolation mechanism.

JupyterHub is composed of a small control plane plus per-user runtime pods.

ComponentResponsibility
HubManages login sessions, user and server state, and the spawn lifecycle, and runs KubeSpawner.
Configurable HTTP ProxyRoutes public requests to the Hub or to the user’s single-user server.
KubeSpawnerCreates and deletes single-user Pods, Services, and PVCs with the Hub’s namespace-local RBAC.
Single-user serverRuns the Jupyter Docker Stack image selected in the profile with the jupyterhub-singleuser command.
Idle cullerCleans up user servers and user sessions that stay idle for one hour.

At spawn time, users choose one of the following Jupyter Docker Stack profiles. All profiles use the 2026-07-20 image tag. Image pre-pulling is disabled, so the node performs the image pull on the first server spawn.

ProfileImage
Base Notebookquay.io/jupyter/base-notebook:2026-07-20
Minimal Notebookquay.io/jupyter/minimal-notebook:2026-07-20
Data Science Notebookquay.io/jupyter/datascience-notebook:2026-07-20
SciPy Notebookquay.io/jupyter/scipy-notebook:2026-07-20
TensorFlow Notebookquay.io/jupyter/tensorflow-notebook:2026-07-20
PyTorch Notebookquay.io/jupyter/pytorch-notebook:2026-07-20
R Notebookquay.io/jupyter/r-notebook:2026-07-20
Julia Notebookquay.io/jupyter/julia-notebook:2026-07-20

KubeSpawner creates a dynamic PVC for each user server and mounts it at /home/jovyan. The PVC’s requested capacity is 10Gi and its access mode is ReadWriteOnce. The PVC outlives the Pod, so workspace data remains even when the idle culler deletes the server Pod. No storage class is specified, so the cluster default StorageClass must support dynamic provisioning.

This makes JupyterHub useful as a persistent development surface even though the user Pod itself is disposable.

Kubeflow Notebooks is a tenant-oriented Notebook platform that requires Profiles and the Dashboard workflow. JupyterHub does not go through that control plane and instead provides a simple, shared-account-based Jupyter Docker Stack environment on a separate hostname. It is therefore suitable for platform administrators who want to provide basic Python, R, Julia, TensorFlow, and PyTorch environments quickly, but it does not replace Profile namespace isolation or Kubeflow Dashboard access control. It also does not replace Notebook custom-resource ownership.

  • profile-based server selection: users select one of eight standard environments during spawn, without a separate deployment for each image.
  • persistent development workspace: the /home/jovyan workspace PVC is kept after user server replacement and idle culling.
  • shared metadata store: the Hub’s users, groups, OAuth tokens, servers, and spawn state are preserved in the jupyterhub logical database on the shared Percona MySQL.
  • independent browser route: the Azure web app routing Ingress forwards traffic to the proxy-public Service.
  • namespace-local runtime: Hub RBAC and NetworkPolicy limit the relationships between the Hub, proxy, and single-user workloads to within the jupyterhub namespace.
overlays/dev/jupyterhub
-> base/jupyterhub/charts/jupyterhub-4.4.0
-> values.yaml
-> Hub MySQL URI and DummyAuthenticator Secret references
-> KubeSpawner profile list and dynamic workspace PVC
-> NetworkPolicy, idle culler, scheduling settings
-> ingress.yaml
-> cert-manager Certificate
-> Azure web app routing Ingress

kustomization.yaml renders only the Helm chart and ingress.yaml as resources. The local jupyterhub-mysql.secret.yaml and jupyterhub.secret.yaml templates are commented out, so they are not part of the active deployment. The Secrets below must exist before the Hub Deployment, provisioned by a secret controller or separately.

SecretRequired keyPurpose
jupyterhub-db-secreturiHub database URI in mysql+pymysql form
jupyterhub-secretadmin-passwordShared password for DummyAuthenticator

The Hub chart renders a separate Secret/hub that holds the proxy authorization token, cookie secret, and encryption key, but it does not create the two external Secrets.

SettingCurrent valueMeaning
Hub / proxy replicas1 eachSingle-replica deployment, not highly available
Hub imagequay.io/jupyterhub/k8s-hub:4.4.0JupyterHub and KubeSpawner runtime
Proxy imagequay.io/jupyterhub/configurable-http-proxy:5.2.0Hub route proxy
AuthenticationDummyAuthenticatorShared-password development authentication
Hub databaseMySQL jupyterhub logical databaseDurable backend store for Hub state
Named serversDisabledNo named servers per user
Shared PVCDynamic 10Gi, ReadWriteOnceMounts the single-user workspace at /home/jovyan
Service account tokenDisabled in single-user PodsautomountServiceAccountToken: false
Idle cullingEnabledIdle for 3600 seconds, checked every 600 seconds, including administrators
User scheduler / placeholder / pre-pullerDisabledUses the default scheduler and does not pre-pull images

A few implications matter operationally:

  • a Hub or proxy outage interrupts new login and spawn activity because there is no active replica pair
  • the first spawn on a node can be noticeably slower because images are not pre-pulled
  • single-user Pods do not automatically get Kubernetes API credentials, which is safer by default but means cluster access must be designed explicitly if needed

Certificate/jupyterhub-ingressgateway-certs issues the hostname TLS Secret from the kubeflow-self-signing-issuer ClusterIssuer. Ingress/jupyterhub-ingress uses the Azure web app routing ingress class and forwards jupyterhub.<cluster-domain>/ requests to proxy-public:80. There is no body size limit, and the read and send timeouts are 3600 seconds each.

The chart creates hub, proxy, and singleuser NetworkPolicies. The Hub connects to the proxy API and the single-user server port, and the proxy connects the Hub and the single-user servers. Single-user egress is allowed to the Hub, the proxy, DNS, and non-private addresses. Private address access and cross-namespace access must be checked together with the actual enforcement of the NetworkPolicy and the CNI implementation. The manifest expresses the intent, but operators should verify the enforcement behavior in the cluster.

NamespaceResourceNameRole
jupyterhubDeploymenthubManages authentication, database state, and the KubeSpawner lifecycle
jupyterhubDeploymentproxyRuns the Configurable HTTP Proxy
jupyterhubServicehub, proxy-api, proxy-publicHub API, proxy API, and external request target
jupyterhubServiceAccount + Role + RoleBindinghubNamespace-local Hub permissions for the Pod, PVC, Service, and Secret lifecycle
jupyterhubConfigMap + SecrethubRendered JupyterHub configuration and chart-managed key material
jupyterhubNetworkPolicyhub, proxy, singleuserInternal component traffic control
jupyterhubCertificatejupyterhub-ingressgateway-certsIssues the browser hostname TLS Secret
jupyterhubIngressjupyterhub-ingressRoutes the root path to proxy-public:80
jupyterhubSecretjupyterhub-secretExternal provisioning required, DummyAuthenticator password
jupyterhubSecretjupyterhub-db-secretExternal provisioning required, MySQL URI
mysqlPercona MySQL Serviceps-db-haproxyWriter endpoint for the jupyterhub database
jupyterhubPod + PVCKubeSpawner-generatedPer-user selected environment and persistent workspace

PlantUML source:

PlantUML Diagram
  1. The browser sends a request to the independent JupyterHub hostname.
  2. The Azure web app routing Ingress forwards the request to the proxy-public Service and the Configurable HTTP Proxy.
  3. The proxy forwards /hub/ requests to the Hub, and DummyAuthenticator compares the externally provisioned admin-password with the user input.
  4. When the authenticated user selects a profile, the Hub’s KubeSpawner creates a single-user Pod, a Service, and a dynamic 10Gi RWO PVC.
  5. The jupyterhub-singleuser process of the selected image starts and mounts the workspace PVC at /home/jovyan.
  6. After the Hub registers the proxy route, the proxy forwards /user/<name>/ requests to that single-user server.
  7. The idle culler checks activity every 600 seconds and cleans up user servers and user sessions that have been idle for 3600 seconds or more. The PVC is not deleted in this process.

In short, the browser reaches proxy-public, the Hub verifies the configured authenticator, and KubeSpawner creates the selected single-user server with its workspace PVC. The proxy then registers the user route and forwards browser traffic to that server.

PlantUML source:

PlantUML Diagram
  • Upstream (must be Ready first): the jupyterhub namespace, a cluster default StorageClass, the Percona MySQL writer Service and the jupyterhub database, the two external Secrets, the cert-manager ClusterIssuer, the Azure web app routing ingress controller, and profile image availability.
  • Downstream (depends on this): JupyterHub users and single-user servers are created after the Hub is Ready. User servers can use Kubeflow APIs, MLflow, and object storage, but the current overlay does not automatically inject those credentials or endpoints.

The Hub reads jupyterhub-db-secret.uri as the DB_URI environment variable and applies it as c.JupyterHub.db_url. The URI must have the form mysql+pymysql://<user>:<password>@<mysql-writer>.<db-namespace>.svc.cluster.local:3306/jupyterhub. Only the Hub connects to MySQL; the proxy and single-user Pods do not use this database. The backend z2jh officially recommends is PostgreSQL; the reasoning behind using a shared MySQL here, and the charset, index key length, driver, and migration risks that come with it, are covered separately in Why We Put JupyterHub on a Shared MySQL. Database bootstrap and the minimal privilege contract follow Shared Data Services (MySQL and Object Storage).

The Hub ServiceAccount has permission to manage the lifecycle of Pods, PVCs, Secrets, and Services in the namespace. Single-user Pods have ServiceAccount token automount turned off, so they do not have Kubernetes API access by default. If a user workload needs Kubernetes API permissions, review the current security model and then design an explicit ServiceAccount and minimal RBAC separately.

This ingress does not use the Kubeflow kubeflow-gateway, oauth2-proxy external authorization, or the Dex redirect path. Hostname traffic ends at the JupyterHub proxy and DummyAuthenticator, so it is not automatically linked to Kubeflow Profile identity, Dashboard roles, or Notebook CR ownership.

This is a standalone JupyterHub deployment. Its ingress, authenticator, identity, and user-server lifecycle are intentionally separate from the Kubeflow gateway and Profile model. The shared MySQL database records only Hub state, while user workloads require explicit configuration before they can use Kubernetes APIs or other platform services.

  • Deployment/hub: runs the Hub database state, DummyAuthenticator, KubeSpawner, and the idle culler service configuration.
  • Deployment/proxy and Service/proxy-public: relay browser requests and user server routes.
  • Role/hub and RoleBinding/hub: let the Hub create and observe namespace-local user runtime resources.
  • NetworkPolicy/hub, proxy, singleuser: declare the ingress and egress relationships inside the component.
  • Secret/jupyterhub-secret: the admin-password source that must be provisioned separately before deployment.
  • Secret/jupyterhub-db-secret: the MySQL uri source that must be provisioned separately before deployment.
  • Certificate/jupyterhub-ingressgateway-certs and Ingress/jupyterhub-ingress: provide independent hostname TLS and proxy-public routing.
Additional runtime checkSee the dependency and boundary sections
ScopeLimited to the standalone JupyterHub deployment
browser -> proxy-public -> Hub -> KubeSpawner -> single-user server