You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
major releases of JupyterHub 2 and 3 in the [JupyterHub changelog](https://jupyterhub.readthedocs.io/en/latest/changelog.html).
53
55
54
-
JupyterHub 2 uses an updated database schema.
55
-
Z2JH 2.0.0 automatically handles the upgrade for SQLite databases (the default), but if you use an external database you need to configure [`hub.db.upgrade`](schema_hub.db.upgrade) to true when upgrading. It will not be possible to downgrade to older releases after this without also using a backup or resetting the database.
56
+
JupyterHub 2 and 3 updates the database schema, which means a migration takes place when you upgrade JupyterHub.
57
+
Z2JH automatically handles the upgrade if you are using sqlite (`hub.db.type = 'sqlite-pvc'`, the default), but it may not be possible to downgrade to older releases after this.
58
+
When using sqlite, JupyterHub automatically creates a backup in the `hub-db` volume,
59
+
which can be restored manually if you need to downgrade.
60
+
If you use an external database you need to configure [`hub.db.upgrade`](schema_hub.db.upgrade) to `true` when upgrading.
56
61
57
62
JupyterHub 2 adds RBAC for managing permissions in JupyterHub.
58
-
The old permissions model of admin/non-admin still works but you should use
59
-
[RBAC to assign the required privileges to users or services in future](https://jupyterhub.readthedocs.io/en/stable/rbac/index.html)
63
+
The old permissions model of admin/non-admin still works, but we recommend using [RBAC to assign only the required privileges to users or services in future](https://jupyterhub.readthedocs.io/en/stable/rbac/index.html).
64
+
Default permissions are mostly unchanged, but a few have:
65
+
66
+
- Servers' own API tokens have limited permissions by default, which can be expanded by defining the `server` role. The previous behavior was the maximum permission of `inherit`.
67
+
- `admin_access`as a concept is removed, so disabling it has no effect. In 2.0, admins by definition can do everything, including access servers. To limit user permissions, assign them to roles which have only the needed permissions.
60
68
61
69
KubeSpawner has replaced the [`kubernetes`] library with [`kubernetes_asyncio`](https://github.com/tomplus/kubernetes_asyncio).
62
70
If you have extended the JupyterHub image and you rely on the kubernetes library you will need to modify your extensions.
63
71
64
72
See
65
-
`TODO: link to Notable dependencies updated`
66
-
in the changelog for more information on other upgraded hub components.
for more information on other upgraded hub components.
67
75
68
76
## JupyterLab and Jupyter Server
69
77
@@ -81,6 +89,16 @@ singleuser:
81
89
allowPrivilegeEscalation: true
82
90
```
83
91
92
+
If you want to add custom arguments to the command, you must specify the full command and any arguments in `singleuser.cmd`, for example:
93
+
94
+
```yaml
95
+
singleuser:
96
+
cmd:
97
+
- jupyterhub-singleuser
98
+
- "--collaborative"
99
+
- "--debug"
100
+
```
101
+
84
102
## Configuration in `jupyterhub_config.d` has a higher priority than `hub.config` [#2457](https://github.com/jupyterhub/zero-to-jupyterhub-k8s/pull/2457)
85
103
86
104
Previously if `hub.config` was used to configure some JupyterHub traitlets it would override any custom configuration files mounted into `jupyterhub_config.d` in the hub container.
0 commit comments