Skip to content

Kubeflow Notebooks

Interactive Diagram

새 탭 ↗
ItemValue
VersionKubeflow Notebooks v1.11.0
Official docsKubeflow Notebooks
Upstream sourceapplications/notebooks-v1/upstream

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.

ComponentRoleUser entry point
Jupyter Web AppSelects Notebook image, CPU, memory, GPU, workspace volume, and PodDefault, and creates the Notebook CR and PVC/jupyter/
Notebook ControllerReconciles Notebook CRs into StatefulSets, Services, and VirtualServices/notebook/<namespace>/<name>/
Volumes Web AppCreates, lists, and deletes PVCs in the Profile namespace and creates PVCViewer CRs/volumes/
PVCViewer ControllerMounts the selected PVC into a filebrowser workload and configures the browser route/pvcviewers/<namespace>/<pvc>/
Tensorboards Web AppCreates Tensorboard CRs and shows their status and access route/tensorboards/
Tensorboard ControllerReconciles Tensorboard CRs into a Tensorboard runtime and Istio routeDynamic path per Tensorboard CR
CRDAPI group / versionRole
notebooks.kubeflow.orgkubeflow.org/v1Declares the user Notebook Pod template and runtime configuration. v1 is the storage version, and v1alpha1 and v1beta1 are also served.
pvcviewers.kubeflow.orgkubeflow.org/v1alpha1Declares the viewer workload and networking settings for opening a PVC in a read/write filebrowser.
tensorboards.tensorboard.kubeflow.orgtensorboard.kubeflow.org/v1alpha1Declares 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.

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.

  • 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.

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/istio

This 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.

ItemDefaultMeaning
Control-plane namespacekubeflowNamespace where UI and controller Deployments run
User runtime namespaceProfile namespaceTenant boundary where Notebook, PVCViewer, and Tensorboard workloads are created
Notebook gatewaykubeflow/kubeflow-gatewayIstio gateway that per-Notebook VirtualServices attach to
Default Notebook imagejupyter-scipy:v1.11.0Default Notebook server image of the Jupyter Web App
Custom imagesAllowedUsers can enter any image in the form
CPU / memory request0.5 / 1.0GiDefault request of the Notebook container
Workspace PVC5Gi, ReadWriteOnceCreates {notebook-name}-workspace and mounts it at /home/jovyan
Idle cullingDisabledENABLE_CULLING=false; the CULL_IDLE_TIME=1440 value exists but culling does not run
Tensorboard imagetensorflow/tensorflow:2.5.1Default runtime image created by the Tensorboard Controller
RWO schedulingEnabledAdjusts 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.

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).

NamespaceResourceNameRole
kubeflowDeployment + Servicejupyter-web-app-deployment, jupyter-web-app-serviceNotebook creation and management UI
kubeflowDeployment + Servicenotebook-controller-deployment, notebook-controller-serviceNotebook CR reconcile and metrics endpoint
kubeflowDeployment + Servicevolumes-web-app-deployment, volumes-web-app-servicePVC and PVCViewer management UI
kubeflowDeployment + Servicepvcviewer-controller-manager, pvcviewer-webhook-servicePVCViewer reconcile, conversion, admission webhook
kubeflowDeployment + Servicetensorboards-web-app-deployment, tensorboards-web-app-serviceTensorboard management UI
kubeflowDeployment + Servicetensorboard-controller-deployment, tensorboard-controller-controller-manager-metrics-serviceTensorboard CR reconcile
kubeflowVirtualServicejupyter-web-app-jupyter-web-app/jupyter/ route
kubeflowVirtualServicevolumes-web-app-volumes-web-app/volumes/ route
kubeflowVirtualServicetensorboards-web-app-tensorboards-web-app/tensorboards/ route
kubeflowAuthorizationPolicyjupyter-web-app, volumes-web-app, tensorboards-web-appAllow UI access for the ingressgateway principal
kubeflowCertificatepvcviewer-serving-certPVCViewer webhook TLS certificate
(cluster)CRDnotebooks.kubeflow.orgNotebook API
(cluster)CRDpvcviewers.kubeflow.orgPVCViewer API
(cluster)CRDtensorboards.tensorboard.kubeflow.orgTensorboard API
Profile namespaceNotebook + StatefulSet + Service + VirtualServiceUser-specified nameInteractive Notebook runtime and route
Profile namespacePVC{notebook-name}-workspaceUser workspace block storage
Profile namespacePVCViewer runtimeBased on PVC namefilebrowser with PVC mount, dynamic route
Profile namespaceTensorboard runtimeUser-specified nameTensorboard Pod and dynamic route

PlantUML source:

PlantUML Diagram

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:

PlantUML Diagram

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.

  • 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.

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.

  • 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. Currently USE_ISTIO=true and ENABLE_CULLING=false.
  • volumes-web-app-viewer-spec-*: filebrowser image, /srv mount, base path, default-editor ServiceAccount, 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, and kubeflow-view.

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.