Kubeflow Notebooks
Basic information
Section titled “Basic information”| Item | Value |
|---|---|
| Version | Kubeflow Notebooks v1.11.0 |
| Official docs | Kubeflow Notebooks |
| Upstream source | applications/notebooks-v1/upstream |
Concepts and characteristics
Section titled “Concepts and characteristics”Kubeflow Notebooks is not a component that installs only the Notebook CR. It deploys the Notebook creation UI and controller, the PVC management UI and PVCViewer controller, and the Tensorboard UI and controller as a single Istio overlay. The control plane lives in the kubeflow namespace, and the Notebooks, workspace PVCs, PVCViewers, and Tensorboard runtimes that users create are made in the selected Profile namespace.
Architecture components
Section titled “Architecture components”| Component | Role | User entry point |
|---|---|---|
| Jupyter Web App | Selects Notebook image, CPU, memory, GPU, workspace volume, and PodDefault, and creates the Notebook CR and PVC | /jupyter/ |
| Notebook Controller | Reconciles Notebook CRs into StatefulSets, Services, and VirtualServices | /notebook/<namespace>/<name>/ |
| Volumes Web App | Creates, lists, and deletes PVCs in the Profile namespace and creates PVCViewer CRs | /volumes/ |
| PVCViewer Controller | Mounts the selected PVC into a filebrowser workload and configures the browser route | /pvcviewers/<namespace>/<pvc>/ |
| Tensorboards Web App | Creates Tensorboard CRs and shows their status and access route | /tensorboards/ |
| Tensorboard Controller | Reconciles Tensorboard CRs into a Tensorboard runtime and Istio route | Dynamic path per Tensorboard CR |
Custom resource
Section titled “Custom resource”| CRD | API group / version | Role |
|---|---|---|
notebooks.kubeflow.org | kubeflow.org/v1 | Declares the user Notebook Pod template and runtime configuration. v1 is the storage version, and v1alpha1 and v1beta1 are also served. |
pvcviewers.kubeflow.org | kubeflow.org/v1alpha1 | Declares the viewer workload and networking settings for opening a PVC in a read/write filebrowser. |
tensorboards.tensorboard.kubeflow.org | tensorboard.kubeflow.org/v1alpha1 | Declares a Tensorboard runtime that reads a log directory or PVC. |
The spec.template of a Notebook CR contains a Kubernetes Pod template. The Jupyter Web App converts the user’s form input into this template and the related PVC resources, and the Notebook Controller creates a StatefulSet that maintains the declared template plus a Service and VirtualService for access.
Role in Kubeflow
Section titled “Role in Kubeflow”Background
Section titled “Background”Jupyter can run as a plain Kubernetes Pod, but for users to choose images and resources in their own namespace, keep their workspace, and connect from the Dashboard, namespace permissions, Istio path routing, and runtime lifecycle must be managed consistently. Notebooks connects this process to Profiles and Kubeflow aggregated RBAC.
Running Jupyter directly as a plain workload does not automatically give users a safe multi-tenant experience. This is why Notebooks is one of the most user-visible parts of the stack.
Key contributions
Section titled “Key contributions”- Interactive environments: runs not only JupyterLab but also code-server and RStudio-class images through the same Notebook API.
- Profile namespace isolation: places Notebook runtimes and workspace PVCs in the user’s Profile namespace and controls permissions with the Kubeflow view/edit/admin roles.
- Accelerator and PodDefault integration: NVIDIA, AMD, and Intel Gaudi resources and the namespace’s PodDefaults can be selected in the Notebook creation form.
- Persistent workspaces: uses an RWO PVC that survives Notebook recreation as the default workspace, and can attach additional data volumes.
- Volume and Tensorboard integration: separate UIs and CRDs let users inspect PVC contents and visualize training logs in Tensorboard.
- Dashboard and Istio integration: connects static UI routes and per-Notebook dynamic routes to
kubeflow-gateway.
Deployment structure
Section titled “Deployment structure”Overlay structure
Section titled “Overlay structure”The dev overlay references the upstream Notebooks bundle, including the Istio configuration for Kubeflow, as is. There are no separate local patches, and the namespace, image tags, routes, AuthorizationPolicies, and controller config are configured in upstream applications/notebooks-v1/overlays/istio.
overlays/dev/kubeflow/overlays/notebooks-v1 -> applications/notebooks-v1/overlays/istio -> jupyter-web-app/overlays/istio -> notebook-controller/overlays/kubeflow -> pvcviewer-controller/default -> volumes-web-app/overlays/istio -> tensorboard-controller/overlays/kubeflow -> tensorboards-web-app/overlays/istioThis overlay includes the CRDs, controllers, and UIs all at once. Unlike Pipelines or Trainer, it does not split CRDs and the runtime overlay into separate steps, so duplicate CRDs must not be added in the same kustomization.
Key settings
Section titled “Key settings”| Item | Default | Meaning |
|---|---|---|
| Control-plane namespace | kubeflow | Namespace where UI and controller Deployments run |
| User runtime namespace | Profile namespace | Tenant boundary where Notebook, PVCViewer, and Tensorboard workloads are created |
| Notebook gateway | kubeflow/kubeflow-gateway | Istio gateway that per-Notebook VirtualServices attach to |
| Default Notebook image | jupyter-scipy:v1.11.0 | Default Notebook server image of the Jupyter Web App |
| Custom images | Allowed | Users can enter any image in the form |
| CPU / memory request | 0.5 / 1.0Gi | Default request of the Notebook container |
| Workspace PVC | 5Gi, ReadWriteOnce | Creates {notebook-name}-workspace and mounts it at /home/jovyan |
| Idle culling | Disabled | ENABLE_CULLING=false; the CULL_IDLE_TIME=1440 value exists but culling does not run |
| Tensorboard image | tensorflow/tensorflow:2.5.1 | Default runtime image created by the Tensorboard Controller |
| RWO scheduling | Enabled | Adjusts scheduling so PVCViewer and Tensorboard do not conflict with existing volume attachments when they use an RWO PVC |
Jupyter images recognize the Notebook path through NB_PREFIX. code-server and RStudio-class images run at the root path, so the UI adds Notebook annotations to use Istio URI rewrite, and for RStudio it also sets the X-RStudio-Root-Path header so the application can generate correct internal links.
Workspace Storage Boundary
Section titled “Workspace Storage Boundary”The Notebooks overlay does not install a static PVC. When a user creates a Notebook, the Jupyter Web App dynamically creates a {notebook-name}-workspace PVC in the Profile namespace, and the default configuration without storageClassName uses the cluster default StorageClass. Users can also attach an existing PVC or add separate data volume PVCs.
The Notebook workspace PVC is block storage and has a different purpose from the SeaweedFS object storage of Pipelines. It is also not connected to the shared MySQL database or to Model Registry metadata. The component documents cover only the connection contract, such as mount path, access mode, and which component creates the PVC dynamically; the cluster-wide database and object storage structure is covered in Shared data services (MySQL and Object Storage).
Deployment view
Section titled “Deployment view”Resource Placement
Section titled “Resource Placement”| Namespace | Resource | Name | Role |
|---|---|---|---|
kubeflow | Deployment + Service | jupyter-web-app-deployment, jupyter-web-app-service | Notebook creation and management UI |
kubeflow | Deployment + Service | notebook-controller-deployment, notebook-controller-service | Notebook CR reconcile and metrics endpoint |
kubeflow | Deployment + Service | volumes-web-app-deployment, volumes-web-app-service | PVC and PVCViewer management UI |
kubeflow | Deployment + Service | pvcviewer-controller-manager, pvcviewer-webhook-service | PVCViewer reconcile, conversion, admission webhook |
kubeflow | Deployment + Service | tensorboards-web-app-deployment, tensorboards-web-app-service | Tensorboard management UI |
kubeflow | Deployment + Service | tensorboard-controller-deployment, tensorboard-controller-controller-manager-metrics-service | Tensorboard CR reconcile |
kubeflow | VirtualService | jupyter-web-app-jupyter-web-app | /jupyter/ route |
kubeflow | VirtualService | volumes-web-app-volumes-web-app | /volumes/ route |
kubeflow | VirtualService | tensorboards-web-app-tensorboards-web-app | /tensorboards/ route |
kubeflow | AuthorizationPolicy | jupyter-web-app, volumes-web-app, tensorboards-web-app | Allow UI access for the ingressgateway principal |
kubeflow | Certificate | pvcviewer-serving-cert | PVCViewer webhook TLS certificate |
| (cluster) | CRD | notebooks.kubeflow.org | Notebook API |
| (cluster) | CRD | pvcviewers.kubeflow.org | PVCViewer API |
| (cluster) | CRD | tensorboards.tensorboard.kubeflow.org | Tensorboard API |
| Profile namespace | Notebook + StatefulSet + Service + VirtualService | User-specified name | Interactive Notebook runtime and route |
| Profile namespace | PVC | {notebook-name}-workspace | User workspace block storage |
| Profile namespace | PVCViewer runtime | Based on PVC name | filebrowser with PVC mount, dynamic route |
| Profile namespace | Tensorboard runtime | User-specified name | Tensorboard Pod and dynamic route |
Diagram
Section titled “Diagram”PlantUML source:
Runtime flows
Section titled “Runtime flows”Notebook creation and access
Section titled “Notebook creation and access”When a user selects a Profile namespace, image, resources, and workspace in the Jupyter Web App, the UI creates the workspace PVC and the Notebook CR. The Notebook Controller watches the CR, creates the StatefulSet, Service, and VirtualService, and reflects the status in the Notebook CR. When the user clicks CONNECT in the Dashboard, the request passes through kubeflow-gateway and is delivered to the user’s Notebook Pod via the /notebook/<namespace>/<name>/ route.
PlantUML source:
PVCViewer and RWO volumes
Section titled “PVCViewer and RWO volumes”The Volumes Web App creates a PVCViewer CR from the selected PVC name and the viewer template. After the PVCViewer Controller’s mutating/validating webhooks default and validate the resource, the controller configures a filebrowser workload that uses the default-editor ServiceAccount and the /pvcviewers/<namespace>/<pvc>/ route.
rwoScheduling: true places the viewer on a compatible node when a workload already uses the RWO volume, to reduce the chance of multi-attach errors. Whether simultaneous mounts are possible depends on the storage driver and workload scheduling conditions, so this setting must not be read as meaning the volume can be attached freely from multiple nodes like RWX.
The PVCViewer admission webhook uses failurePolicy: Fail. Therefore pvcviewer-webhook-service, the serving certificate, and caBundle must be healthy for PVCViewer CR creation to be allowed.
Tensorboard sessions follow a similar pattern: a user opens /tensorboards/ and creates a session, the UI creates a Tensorboard custom resource, and the Tensorboard controller reconciles it into a running runtime and route. The resulting session exposes log visualization without the user having to handcraft Services and routing.
Dependencies and interactions
Section titled “Dependencies and interactions”Prerequisites / downstream
Section titled “Prerequisites / downstream”- Prerequisites: namespace, cert-manager, Istio,
kubeflow-gateway, oauth2-proxy/ExtAuthZ, Dashboard, Profile controller, Kubeflow aggregated RBAC, cluster default StorageClass. - Downstream: users can use the KFP SDK, Katib client, and KServe client from a Notebook, but those components do not directly depend on the Notebooks installation.
- Documents to read together: Profile namespaces and permissions are covered in User Profile and Multi-tenancy, and Dashboard routes and authentication in Dashboard and Authentication flow.
Runtime interactions
Section titled “Runtime interactions”The static routes of the three Web Apps use kubeflow-gateway and an ISTIO_MUTUAL DestinationRule. Each AuthorizationPolicy allows requests from the istio-ingressgateway ServiceAccount principal, so users reach the UIs through the Dashboard authentication flow.
Notebook runtimes live in the Profile namespace, so the namespace’s owner/contributor RoleBindings and the Kubeflow aggregated roles determine Notebook CRUD permissions. The Jupyter Web App can query the namespace’s PodDefaults and expose them in the form, and for a selected PodDefault the admission webhook injects settings such as env, volumes, mounts, and tolerations into the Notebook Pod based on the label selector.
The Notebook workspace is mounted directly from a Kubernetes PVC. Unlike Pipelines artifacts, no object storage credentials are injected automatically, and it is not connected to shared MySQL. Notebook runtimes also do not automatically inherit access to Model Registry or serving systems. To call KFP, object storage, or Model Registry from inside a Notebook, each client configuration and authentication must be provided separately.
Key resources
Section titled “Key resources”jupyter-web-app-config-*: Notebook spawner form settings such as the image list, resource defaults, workspace PVC, shared memory, and PodDefault selection.notebook-controller-config-*: Istio gateway, cluster domain, and idle culling settings. CurrentlyUSE_ISTIO=trueandENABLE_CULLING=false.volumes-web-app-viewer-spec-*: filebrowser image,/srvmount, base path,default-editorServiceAccount, and RWO scheduling settings.pvcviewer-serving-cert: TLS certificate for the PVCViewer conversion/admission webhook.pvcviewer-mutating-webhook-configuration: PVCViewer CR defaulting webhook. Rejects CR creation on failure.pvcviewer-validating-webhook-configuration: PVCViewer CR validation webhook. Rejects CR creation on failure.tensorboard-controller-config-*: Tensorboard image, Istio gateway, and RWO PVC scheduling settings.- Kubeflow aggregated roles: merge Notebook, Jupyter UI, Volume UI, and Tensorboard UI permissions into
kubeflow-admin,kubeflow-edit, andkubeflow-view.
References
Section titled “References”- overlay:
overlays/dev/kubeflow/overlays/notebooks-v1 - upstream bundle:
applications/notebooks-v1/overlays/istio - upstream Notebook config:
applications/notebooks-v1/upstream/jupyter-web-app/base/configs/spawner_ui_config.yaml - upstream PVCViewer config:
applications/notebooks-v1/upstream/volumes-web-app/base/viewer-spec.yaml - Related documents:
Kubeflow Notebooks is the interactive workspace layer for the platform: user-facing, namespace-scoped, and tightly integrated with Dashboard routing and RBAC. In this repository it is more than just Notebook Pods; it is the whole bundle that lets users create persistent developer workspaces, inspect PVC content, and launch Tensorboard sessions while keeping the actual runtimes inside tenant namespaces.