Skip to content

Commit

Permalink
chore: more data example to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mxab committed Sep 12, 2022
1 parent 3de0dfb commit 38b8571
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,26 @@ c.JupyterHub.named_server_limit_per_user = 3
c.JupyterHub.authenticator_class = DummyAuthenticator
c.NomadSpawner.datacenters = ["dc1"]
c.JupyterHub.mem_limit = "2G"
c.NomadSpawner.mem_limit = "2G"
c.NomadSpawner.common_images = ["jupyter/minimal-notebook:2022-08-20"]
def csi_volume_parameters(spawner):
if spawner.user_options["volume_csi_plugin_id"] == "nfs":
return {
"gid" : "1000",
"uid" : "1000"
}
else:
return None
c.NomadSpawner.csi_volume_parameters = csi_volume_parameters
def vault_policies(spawner):
return [f"my-policy-{spawner.user.name}"]
c.NomadSpawner.vault_policies = vault_policies
EOF
Expand Down

0 comments on commit 38b8571

Please sign in to comment.