Skip to content

Commit 7fec825

Browse files
authored
Merge branch 'main' into repo-sync/nebari/default
2 parents 92b527f + 6e27009 commit 7fec825

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

docs/docs/explanations/advanced-profiles-settings.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,27 @@ Profiles are used to control the JupyterLab user instances and Dask workers prov
1515
profiles:
1616
jupyterlab:
1717
- display_name: Small Instance
18-
description: Stable environment with 1 cpu / 1 GB ram
18+
description: Stable environment with 2 cpu / 8 GB ram
1919
access: all
2020
default: true
21+
profile_options: # optional
22+
image:
23+
display_name: Image
24+
choices:
25+
default:
26+
display_name: nebari-jupyterlab:latest
27+
default: true
28+
kubespawner_override:
29+
image: quay.io/nebari/nebari-jupyterlab:latest
30+
custom:
31+
display_name: my-custom-image:mytag
32+
kubespawner_override:
33+
image: <my-container-registry>/myOrg/my-custom-image:mytag
2134
kubespawner_override:
22-
cpu_limit: 1
23-
cpu_guarantee: 1
24-
mem_limit: 1G
25-
mem_guarantee: 1G
35+
cpu_limit: 2
36+
cpu_guarantee: 1.5
37+
mem_limit: 8G
38+
mem_guarantee: 6G
2639
- display_name: Medium Instance
2740
...
2841
```
@@ -35,6 +48,8 @@ Each profile under `jupyterlab` is a named JupyterLab profile.
3548

3649
`description` is a description of the profile that will be displayed to users.
3750

51+
`profile_options` makes it possible to set various sub-options per profile. See the [Kubespawner docs](https://jupyterhub-kubespawner.readthedocs.io/en/latest/spawner.html#kubespawner.KubeSpawner.profile_list) for more info.
52+
3853
`kubespawner_override` field to define behavior as per the [KubeSpawner](https://jupyterhub-kubespawner.readthedocs.io/en/latest/spawner.html) API.
3954

4055
It is possible to control which users have access to which JupyterLab profiles. Each profile has a field named `access` which can be set to `all` (default if omitted), `yaml`, or
-30 KB
Loading

0 commit comments

Comments
 (0)