This commit is contained in:
2026-03-24 10:59:50 +01:00
commit 7c1c161ced
19 changed files with 856 additions and 0 deletions

89
config.yaml Normal file
View File

@@ -0,0 +1,89 @@
hub:
image:
name: localhost/kupyter-hub
tag: latest
pullPolicy: Never
services:
ngshare:
url: http://ngshare.jupyterhub.svc.cluster.local:8080
apiToken: 822235aaaf83f0232c799fe948cbb1594b01d7d7b11af051871cc2d3fcb08fe8
ngshare-admin:
apiToken: setuptoken123456789012345678901234567890123456789012345678901234
db:
type: postgres
url: postgresql+psycopg2://jupyterhub:jupyterhub@jupyterhub-db-postgresql.jupyterhub.svc:5432/jupyterhub
config:
JupyterHub:
authenticator_class: nativeauthenticator.NativeAuthenticator
admin_users:
- admin
- instructor-Prog
- instructor-Sig
NativeAuthenticator:
open_signup: false
allowed_users:
- admin
- instructor-Prog
- instructor-Sig
extraVolumes:
- name: hub-logos
configMap:
name: hub-logos
extraVolumeMounts:
- name: hub-logos
mountPath: /usr/local/share/jupyterhub/static/images/jupyterhub-80.png
subPath: jupyterhub-80.png
- name: hub-logos
mountPath: /usr/local/share/jupyterhub/static/images/jupyterhub.svg
subPath: jupyterhub.svg
extraConfig:
ngshare.py: |
c.JupyterHub.services.append({
'name': 'ngshare',
'url': 'http://ngshare.jupyterhub.svc.cluster.local:8080',
'api_token': '822235aaaf83f0232c799fe948cbb1594b01d7d7b11af051871cc2d3fcb08fe8',
'oauth_no_confirm': True})
nbgrader: |
c.JupyterHub.load_groups = {
"formgrader-users": ["admin"]
}
proxy:
secretToken: "8031b6dca309ff7259a10d1d38c70c4852d17d5bab02c31cbe7d76a3fb60cb66"
prePuller:
hook:
enabled: false
continuous:
enabled: false
cull:
enabled: true
timeout: 1800
every: 300
singleuser:
defaultUrl: "/tree"
image:
name: localhost/kupyter-notebook
tag: latest
pullPolicy: Never
memory:
limit: 1G
guarantee: 256M
cpu:
limit: 1
guarantee: 0.1
cloudMetadata:
blockWithIptables: false
networkPolicy:
enabled: false