Skip to content

Instantly share code, notes, and snippets.

@vpavlin
Created February 24, 2018 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vpavlin/e8fef99d6c1a5d23987706d773a09351 to your computer and use it in GitHub Desktop.
Save vpavlin/e8fef99d6c1a5d23987706d773a09351 to your computer and use it in GitHub Desktop.
c.JupyterHub.log_level = 'DEBUG'
c.KubeSpawner.user_storage_pvc_ensure = True
c.KubeSpawner.user_storage_capacity = '2Gi'
c.KubeSpawner.pvc_name_template = '%s-nb-{username}-pvc' % c.KubeSpawner.hub_connect_ip
c.KubeSpawner.volumes = [dict(name='data', persistentVolumeClaim=dict(claimName=c.KubeSpawner.pvc_name_template))]
c.KubeSpawner.volume_mounts = [dict(name='data', mountPath='/opt/app-root/src')]
from oauthenticator.openshift import OpenShiftOAuthenticator
c.JupyterHub.authenticator_class = OpenShiftOAuthenticator
OpenShiftOAuthenticator.scope = ['user:info']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment