Skip to content
Snippets Groups Projects
Commit 82aef7a6 authored by František Dvořák's avatar František Dvořák
Browse files

Finalize proof-of-concept enterprise gateway deploment

parent e5012c58
No related branches found
No related tags found
No related merge requests found
...@@ -16,12 +16,12 @@ ingress: ...@@ -16,12 +16,12 @@ ingress:
secretName: acme-tls-central secretName: acme-tls-central
singleuser: singleuser:
# storage: storage:
# capacity: 20Gi capacity: 20Gi
# dynamic: dynamic:
# pvcNameTemplate: claim-{userid}{servername} pvcNameTemplate: claim-{userid}{servername}
# volumeNameTemplate: vol-{userid}{servername} volumeNameTemplate: vol-{userid}{servername}
# storageAccessModes: ["ReadWriteMany"] storageAccessModes: ["ReadWriteMany"]
lifecycleHooks: lifecycleHooks:
postStart: postStart:
exec: { "command": ["/bin/sh", "-c", "mkdir -p /home/jovyan/.notebookCheckpoints"] } exec: { "command": ["/bin/sh", "-c", "mkdir -p /home/jovyan/.notebookCheckpoints"] }
...@@ -33,14 +33,15 @@ singleuser: ...@@ -33,14 +33,15 @@ singleuser:
guarantee: .02 guarantee: .02
defaultUrl: "/lab" defaultUrl: "/lab"
image: image:
name: elyra/nb2kg # https://github.com/valtri/egi-notebooks-images/tree/jupyter-4.x/single-user-gateway
tag: dev name: valtri/single-user-gateway
tag: "jupyter-4b"
# name: elyra/nb2kg
# tag: dev
extraEnv: extraEnv:
# KERNEL_USERNAME: jovyan
KG_AUTH_TOKEN: "{{ gateways_token['cesnet-mcc'] }}"
KG_URL: "https://gateway-cesnet.eosc.zcu.cz"
# KG_HTTP_USER: jovyan
KG_REQUEST_TIMEOUT: "60" KG_REQUEST_TIMEOUT: "60"
JUPYTER_GATEWAY_AUTH_TOKEN: "{{ gateways_token['cesnet-mcc'] }}"
JUPYTER_GATEWAY_URL: "https://gateway-cesnet.eosc.zcu.cz"
hub: hub:
# services: # services:
...@@ -87,16 +88,13 @@ hub: ...@@ -87,16 +88,13 @@ hub:
client_secret: "{{ secret['client_secret'] }}" client_secret: "{{ secret['client_secret'] }}"
oauth_callback_url: "https://eosc.zcu.cz/hub/oauth_callback" oauth_callback_url: "https://eosc.zcu.cz/hub/oauth_callback"
scope: ["openid", "profile", "email", "offline_access", "eduperson_scoped_affiliation", "eduperson_entitlement"] scope: ["openid", "profile", "email", "offline_access", "eduperson_scoped_affiliation", "eduperson_entitlement"]
username_key: "preferred_username" # 'sub' too long for persistent volumes username_key: "sub"
JupyterHub: JupyterHub:
admin_access: true admin_access: true
authenticate_prometheus: false authenticate_prometheus: false
authenticator_class: egi_notebooks_hub.egiauthenticator.EGICheckinAuthenticator authenticator_class: egi_notebooks_hub.egiauthenticator.EGICheckinAuthenticator
# spawner_class # spawner_class: kubespawner.KubeSpawner
spawner_class: egi_notebooks_hub.egispawner.EGISpawner
# c.B2DropSpawner.args = ["--FileCheckpoints.checkpoint_dir='/home/jovyan/.notebookCheckpoints'"] # c.B2DropSpawner.args = ["--FileCheckpoints.checkpoint_dir='/home/jovyan/.notebookCheckpoints'"]
extraConfig:
nb2kg: |-
config = '/etc/jupyter/jupyter_notebook_config.py'
c.Spawner.cmd = ['jupyter-labhub']
templatePaths: templatePaths:
- /egi-notebooks-hub/templates - /egi-notebooks-hub/templates
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment