Introduction
When creating a new Jupyter Notebook in the Kubeflow dashboard, you can customize the resource values, like CPU, memory and PVC. These Notebooks are then created as a pod on the user's Profile/Namespace, and can be accessed by the user through the browser.
How to change the default values
Depending on the use case, there are customers who prefer to have a different default values for creating new Jupyter Notebooks. These configs can be modified on the configMap of jupyter-web-app-deployment.
kubectl edit jupyter-web-app-config -n kubeflow
In the following example, we have changed the default values of the workspaceVolume
workspaceVolume:
# Workspace Volume to be attached to user's Notebook
# If you don't want a workspace volume then delete the 'value' key
value:
mount: /home/kubeflow
newPvc:
metadata:
name: '{notebook-name}-workspace'
spec:
resources:
requests:
storage: 50Gi
accessModes:
- ReadWriteMany
readOnly: false
Save the changes, and with the help of Reloader
the deployment should restart. Else, you can delete the pod jupyter-web-app-deployment
to restart.
Note: When readOnly
is set to true, the web form in the UI will be on Readonly mode, and users cannot change the values.