Skip to content

Commit 38b8571

Browse files
committed
chore: more data example to readme
1 parent 3de0dfb commit 38b8571

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,26 @@ c.JupyterHub.named_server_limit_per_user = 3
115115
c.JupyterHub.authenticator_class = DummyAuthenticator
116116
117117
c.NomadSpawner.datacenters = ["dc1"]
118-
c.JupyterHub.mem_limit = "2G"
118+
119+
c.NomadSpawner.mem_limit = "2G"
120+
121+
122+
c.NomadSpawner.common_images = ["jupyter/minimal-notebook:2022-08-20"]
123+
124+
def csi_volume_parameters(spawner):
125+
if spawner.user_options["volume_csi_plugin_id"] == "nfs":
126+
return {
127+
"gid" : "1000",
128+
"uid" : "1000"
129+
}
130+
else:
131+
return None
132+
c.NomadSpawner.csi_volume_parameters = csi_volume_parameters
133+
134+
135+
def vault_policies(spawner):
136+
return [f"my-policy-{spawner.user.name}"]
137+
c.NomadSpawner.vault_policies = vault_policies
119138
120139
EOF
121140

0 commit comments

Comments
 (0)