Commit d31584c1 authored by Craig Russell's avatar Craig Russell

Added a sandbox mode - started binder

parent 3601adb0
jupyterhub:
hub:
services:
binder:
apiToken: "db5384ca1e9af79f05b2750e31ac2d721968735f921cb845969bd260f3809940"
proxy:
secretToken: "62ccab7bcb9f7e1cee756130026ba84f50a2eccae08170aefb7a995820832c63"
\ No newline at end of file
export RELEASE=jhub
export NAMESPACE=jhub
\ No newline at end of file
export NAMESPACE=jhub
export NAMESPACE_SANDBOX=jhub_sandbox
\ No newline at end of file
......@@ -11,9 +11,7 @@ spec:
- host:
http:
paths:
# - path: /_APP_NAME_(/|$)(.*)
# - path: /jhub(/|$)(.*)
- backend:
- path: /
backend:
serviceName: bia-jupyter-hub
# serviceName: public-proxy
servicePort: 80
\ No newline at end of file
......@@ -46,9 +46,9 @@ auth:
type: github
github:
clientId: "3ba81089332e55967b89"
clientSecret: "905a276f4a6f92904948272873c0ed4f70608e42"
callbackUrl: "http://45.86.170.216:31349/hub/oauth_callback"
clientId: "3a77425bfdd79ace692e"
clientSecret: "3bdf84861e8a2a055a99bd19e4c16aeae56bed35"
callbackUrl: "http://45.86.170.216:30149/hub/oauth_callback"
org_whitelist:
- "bioimagearchive"
scopes:
......@@ -119,7 +119,10 @@ singleuser:
proxy:
secretToken: 1e54cdb91f9c78d3f93a577b90567771ad076424ab24470192cc0776a3d45bd5
service:
type: NodePort
nodePorts:
http: 30149
# service:
# type: NodePort
......
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: notebooks-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$2
nginx.ingress.kubernetes.io/ssl-redirect: "false"
spec:
rules:
- host:
http:
paths:
- path: /notebooks(/|$)(.*)
backend:
serviceName: jovian-notebooks-svc
servicePort: 80
DIRECTORY=`dirname $0`
RELEASE=jhub
NAMESPACE=jhub
NAMESPACE_SANDBOX=jhub_sandbox
helm upgrade --install $RELEASE jupyterhub/jupyterhub \
--namespace $NAMESPACE \
--version=0.9.0 \
--values $DIRECTORY/idr.yml
\ No newline at end of file
--values $DIRECTORY/bia.yml
helm upgrade --install $RELEASE jupyterhub/jupyterhub \
--namespace $NAMESPACE_SANDBOX \
--version=0.9.0 \
--values $DIRECTORY/tmp.yml
\ No newline at end of file
# https://zero-to-jupyterhub.readthedocs.io/en/latest/setup-jupyterhub.html
# Local deployment from git checkout of https://github.com/jupyterhub/zero-to-jupyterhub-k8s.git
# Commit 7e9089b46c23fc1177c17cf1bef74d137cbba2ef (v0.4-580-g7e9089b)
# hub:
# baseUrl: /example/
# cookieSecret: XXXXXXXX
# db:
# type: sqlite-memory
# extraConfig: |
# # https://github.com/jupyterhub/jupyterhub/wiki/Debug-Jupyterhub
# c.JupyterHub.log_level = 'DEBUG'
# c.Spawner.debug = True
# auth:
# dummy:
# password: XXXXXXXX
# dummy:
# password: starf1sh
# type: dummy
# whitelist:
# users:
# - admin
# auth:
# admin:
# access: true
# users:
# - ctr26
# type: github
# github:
# clientId: "3ba81089332e55967b89"
# clientSecret: "905a276f4a6f92904948272873c0ed4f70608e42"
# callbackUrl: "http://45.86.170.216:31349/hub/oauth_callback"
# # orgWhitelist:
# # - "bioimagearchive"
# scopes:
# - "read:user"
auth:
type: custom
custom:
className: tmpauthenticator.TmpAuthenticator
# proxy:
# secretToken: c25c017f695b2d7684d1e103cd607493429369bec0a58b0701b1425babc37efd
singleuser:
defaultUrl: "/lab"
image:
name: jupyter/datascience-notebook
tag: latest
# storage:
# capacity: 15G
# extraVolumes:
# - name: shm-volume
# emptyDir:
# medium: Memory
# extraVolumeMounts:
# - name: shm-volume
# mountPath: /dev/shm
# memory:
# limit: 1G
# guarantee: 1G
# cpu:
# limit: .5
# guarantee: .5
# lifecycleHooks:
# postStart:
# exec:
# command: ["cp", "-a", "src", "target"]
# profileList:
# - display_name: "Minimal"
# description: "Spawns a notebook server with 1G ram and 1 CPU core"
# kubespawner_override:
# cpu:
# limit: .5
# guarantee: .5
# memory:
# limit: 1G
# guarantee: 1G
# - display_name: "16GB - 4 core"
# description: "Spawns a notebook server with 16G ram and 4 CPU core"
# kubespawner_override:
# cpu:
# limit: 8
# guarantee: 4
# memory:
# limit: 32G
# guarantee: 16G
# - display_name: "64GB - 8 core"
# description: "Spawns a notebook server with 64Gb ram and 8 CPU cores"
# kubespawner_override:
# cpu:
# limit: 16
# guarantee: 8
# memory:
# limit: 128G
# guarantee: 64G
# # extraVolumeMounts:
# # - mountPath: /user/jovyan
# # name: jupyterhub-shared
# # extraVolumes:
# # - name: jupyterhub-shared
# # persistentVolumeClaim:
# # claimName: biostudies-pvc
proxy:
secretToken: dc5b2e4157d36d79551c2614bff4c50edacbdb694e92f4043fbf15acdd717090
service:
type: NodePort
nodePorts:
http: 31349
# service:
# type: NodePort
# singleuser:
# storage:
# type: NONE
# Disable pre-puller, fails with rbac
# https://github.com/jupyterhub/zero-to-jupyterhub-k8s/issues/118
prePuller:
enabled: false
# ingress:
# enabled: true
# hosts:
# - localhost
# # - jupyter.EXAMPLE.org
# annotations:
# kubernetes.io/ingress.class: nginx
# ingress.kubernetes.io/proxy-body-size: 16m
# ingress.kubernetes.io/proxy-read-timeout: 3600
# ingress.kubernetes.io/proxy-send-timeout: 3600
# kubernetes.io/tls-acme: 'true'
# tls:
# - hosts:
# - "jupyter.EXAMPLE.org"
# secretName: example-tls
\ No newline at end of file
hub:
baseUrl: /sandbox/
proxy:
secretToken: "removed"
service:
type: ClusterIP
rbac:
enabled: true
singleuser:
image:
name: jupyter/datascience-notebook
tag: v1.0
storage:
type: none
memory:
limit: 5.0G
guarantee: 1.0G
cpu:
limit: 10.0
guarantee: 0.2
cull:
timeout: 2400
every: 600
prePuller:
continuous:
enabled: true
auth:
type: custom
custom:
className: tmpauthenticator.TmpAuthenticator
\ No newline at end of file
http://45.86.170.216:31349
......@@ -10,4 +10,6 @@ helm init --client-only --kubeconfig=$HOME/.kube/kubeconfig
helm plugin install https://github.com/rimusz/helm-tiller --kubeconfig=$HOME/.kube/kubeconfig
helm repo add jupyterhub https://jupyterhub.github.io/helm-chart/
helm repo update
helm upgrade --install $RELEASE jupyterhub/jupyterhub --namespace $NAMESPACE --version=0.9.0 --values helm/idr.yml
\ No newline at end of file
helm upgrade --install jhub jupyterhub/jupyterhub --namespace jhub --version=0.9.0 --values helm/bia.yml
helm upgrade --install sandbox jupyterhub/jupyterhub --namespace sandbox --version=0.9.0 --values helm/sandbox.yml
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment