JupyterHub Platform Notes
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.
Basic facts
Section titled “Basic facts”| Item | Value |
|---|---|
| Version | JupyterHub Helm chart v4.4.0, Hub image v4.4.0 |
| Official docs | Zero to JupyterHub |
| Chart source | base/jupyterhub/charts/jupyterhub-4.4.0 |
| Dev overlay | overlays/dev/jupyterhub |
Concepts and characteristics
Section titled “Concepts and characteristics”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
jupyterhubnamespace - 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.
Architecture
Section titled “Architecture”JupyterHub is composed of a small control plane plus per-user runtime pods.
| Component | Responsibility |
|---|---|
| Hub | Manages login sessions, user and server state, and the spawn lifecycle, and runs KubeSpawner. |
| Configurable HTTP Proxy | Routes public requests to the Hub or to the user’s single-user server. |
| KubeSpawner | Creates and deletes single-user Pods, Services, and PVCs with the Hub’s namespace-local RBAC. |
| Single-user server | Runs the Jupyter Docker Stack image selected in the profile with the jupyterhub-singleuser command. |
| Idle culler | Cleans up user servers and user sessions that stay idle for one hour. |
Profiles and workspaces
Section titled “Profiles and workspaces”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.
| Profile | Image |
|---|---|
| Base Notebook | quay.io/jupyter/base-notebook:2026-07-20 |
| Minimal Notebook | quay.io/jupyter/minimal-notebook:2026-07-20 |
| Data Science Notebook | quay.io/jupyter/datascience-notebook:2026-07-20 |
| SciPy Notebook | quay.io/jupyter/scipy-notebook:2026-07-20 |
| TensorFlow Notebook | quay.io/jupyter/tensorflow-notebook:2026-07-20 |
| PyTorch Notebook | quay.io/jupyter/pytorch-notebook:2026-07-20 |
| R Notebook | quay.io/jupyter/r-notebook:2026-07-20 |
| Julia Notebook | quay.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.
Role in Kubeflow
Section titled “Role in Kubeflow”Background
Section titled “Background”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.
Key contributions
Section titled “Key contributions”- 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/jovyanworkspace 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
jupyterhublogical database on the shared Percona MySQL. - independent browser route: the Azure web app routing Ingress forwards traffic to the
proxy-publicService. - namespace-local runtime: Hub RBAC and NetworkPolicy limit the relationships between the Hub, proxy, and single-user workloads to within the
jupyterhubnamespace.
Deployment structure
Section titled “Deployment structure”Overlay layout
Section titled “Overlay layout”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 Ingresskustomization.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.
| Secret | Required key | Purpose |
|---|---|---|
jupyterhub-db-secret | uri | Hub database URI in mysql+pymysql form |
jupyterhub-secret | admin-password | Shared 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.
Important runtime settings
Section titled “Important runtime settings”| Setting | Current value | Meaning |
|---|---|---|
| Hub / proxy replicas | 1 each | Single-replica deployment, not highly available |
| Hub image | quay.io/jupyterhub/k8s-hub:4.4.0 | JupyterHub and KubeSpawner runtime |
| Proxy image | quay.io/jupyterhub/configurable-http-proxy:5.2.0 | Hub route proxy |
| Authentication | DummyAuthenticator | Shared-password development authentication |
| Hub database | MySQL jupyterhub logical database | Durable backend store for Hub state |
| Named servers | Disabled | No named servers per user |
| Shared PVC | Dynamic 10Gi, ReadWriteOnce | Mounts the single-user workspace at /home/jovyan |
| Service account token | Disabled in single-user Pods | automountServiceAccountToken: false |
| Idle culling | Enabled | Idle for 3600 seconds, checked every 600 seconds, including administrators |
| User scheduler / placeholder / pre-puller | Disabled | Uses 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
Ingress and network policy
Section titled “Ingress and network policy”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.
Deployment view
Section titled “Deployment view”Resource placement
Section titled “Resource placement”| Namespace | Resource | Name | Role |
|---|---|---|---|
jupyterhub | Deployment | hub | Manages authentication, database state, and the KubeSpawner lifecycle |
jupyterhub | Deployment | proxy | Runs the Configurable HTTP Proxy |
jupyterhub | Service | hub, proxy-api, proxy-public | Hub API, proxy API, and external request target |
jupyterhub | ServiceAccount + Role + RoleBinding | hub | Namespace-local Hub permissions for the Pod, PVC, Service, and Secret lifecycle |
jupyterhub | ConfigMap + Secret | hub | Rendered JupyterHub configuration and chart-managed key material |
jupyterhub | NetworkPolicy | hub, proxy, singleuser | Internal component traffic control |
jupyterhub | Certificate | jupyterhub-ingressgateway-certs | Issues the browser hostname TLS Secret |
jupyterhub | Ingress | jupyterhub-ingress | Routes the root path to proxy-public:80 |
jupyterhub | Secret | jupyterhub-secret | External provisioning required, DummyAuthenticator password |
jupyterhub | Secret | jupyterhub-db-secret | External provisioning required, MySQL URI |
mysql | Percona MySQL Service | ps-db-haproxy | Writer endpoint for the jupyterhub database |
jupyterhub | Pod + PVC | KubeSpawner-generated | Per-user selected environment and persistent workspace |
Diagram
Section titled “Diagram”PlantUML source:
Runtime flow
Section titled “Runtime flow”Login, spawn, and access
Section titled “Login, spawn, and access”- The browser sends a request to the independent JupyterHub hostname.
- The Azure web app routing Ingress forwards the request to the
proxy-publicService and the Configurable HTTP Proxy. - The proxy forwards
/hub/requests to the Hub, andDummyAuthenticatorcompares the externally provisionedadmin-passwordwith the user input. - When the authenticated user selects a profile, the Hub’s KubeSpawner creates a single-user Pod, a Service, and a dynamic 10Gi RWO PVC.
- The
jupyterhub-singleuserprocess of the selected image starts and mounts the workspace PVC at/home/jovyan. - After the Hub registers the proxy route, the proxy forwards
/user/<name>/requests to that single-user server. - 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:
Dependencies and interactions
Section titled “Dependencies and interactions”Upstream / downstream
Section titled “Upstream / downstream”- Upstream (must be Ready first): the
jupyterhubnamespace, a cluster default StorageClass, the Percona MySQL writer Service and thejupyterhubdatabase, 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.
Runtime interactions
Section titled “Runtime interactions”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.
Key resources
Section titled “Key resources”Deployment/hub: runs the Hub database state,DummyAuthenticator, KubeSpawner, and the idle culler service configuration.Deployment/proxyandService/proxy-public: relay browser requests and user server routes.Role/hubandRoleBinding/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: theadmin-passwordsource that must be provisioned separately before deployment.Secret/jupyterhub-db-secret: the MySQLurisource that must be provisioned separately before deployment.Certificate/jupyterhub-ingressgateway-certsandIngress/jupyterhub-ingress: provide independent hostname TLS andproxy-publicrouting.
References
Section titled “References”- overlay:
overlays/dev/jupyterhub - chart:
base/jupyterhub/charts/jupyterhub-4.4.0 - related infrastructure: Shared Data Services (MySQL and Object Storage), Kubeflow Notebooks
| Additional runtime check | See the dependency and boundary sections |
|---|---|
| Scope | Limited to the standalone JupyterHub deployment |
browser -> proxy-public -> Hub -> KubeSpawner -> single-user server