This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathconfig_test.yaml
112 lines (104 loc) · 4.09 KB
/
config_test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
projectName: gesis-hub-staging
persistent_binderhub:
binderhub:
resources:
requests:
cpu: "0.25"
memory: 512Mi
limits:
cpu: "1"
memory: 1Gi
config:
BinderHub:
debug: true
hub_url: https://notebooks-test.gesis.org
image_prefix: gesiscss/binder-test-r2d-g5b5b759-
extraConfig:
00-template-variables: |
production = False
service:
annotations:
prometheus.io/scrape: 'false'
nodePort: 30183
jupyterhub:
debug:
enabled: true
hub:
service:
annotations:
prometheus.io/scrape: 'false'
services:
binder:
url: http://194.95.75.14:30085 # base worker
oauth_redirect_uri: "https://notebooks-test.gesis.org/services/binder/oauth_callback"
oauth_client_id: "binder-oauth-client-test"
config:
GenericOAuthenticator:
login_service: "GESIS Test Login" # to customize the label on the login button
oauth_callback_url: https://notebooks-test.gesis.org/hub/oauth_callback
authorize_url: https://login-test.gesis.org/realms/gesis/protocol/openid-connect/auth
token_url: https://login-test.gesis.org/realms/gesis/protocol/openid-connect/token
userdata_url: https://login-test.gesis.org/realms/gesis/protocol/openid-connect/userinfo
extraConfig:
020-orc: |
production = False
# 03-orc: |
# c.GitHubOAuthenticator.auto_login = True
# from jupyterhub.handlers import LogoutHandler, LoginHandler
# from oauthenticator.github import GitHubOAuthenticator
# from oauthenticator.oauth2 import OAuthCallbackHandler
# from extra_config import ORC_LOGIN_COOKIE_NAME, ORC_LOGIN_COOKIE_EXPIRES_DAYS
# class MyLogoutHandler(LogoutHandler):
# def clear_login_cookie(self, name=None):
# super().clear_login_cookie(name)
# self.clear_cookie(ORC_LOGIN_COOKIE_NAME, path="/")
# async def render_logout_page(self):
# site_url = 'https://{}'.format(self.request.host)
# self.redirect(site_url, permanent=False)
# class MyLoginHandler(LoginHandler):
# def set_login_cookie(self, user):
# super().set_login_cookie(user)
# self.set_cookie(name=ORC_LOGIN_COOKIE_NAME, value="true", path="/", expires_days=ORC_LOGIN_COOKIE_EXPIRES_DAYS)
# class MyOAuthCallbackHandler(OAuthCallbackHandler):
# def set_login_cookie(self, user):
# super().set_login_cookie(user)
# self.set_cookie(name=ORC_LOGIN_COOKIE_NAME, value="true", path="/", expires_days=ORC_LOGIN_COOKIE_EXPIRES_DAYS)
# GitHubOAuthenticator.default_logout_handler = MyLogoutHandler
# GitHubOAuthenticator.default_login_handler = MyLoginHandler
# GitHubOAuthenticator.callback_handler = MyOAuthCallbackHandler
# def get_handlers(self, app):
# return [
# (r'/oauth_login', self.login_handler),
# (r'/oauth_callback', self.callback_handler),
# ] + [(r'/logout', self.default_logout_handler), (r'/login', self.default_login_handler)]
# GitHubOAuthenticator.get_handlers = get_handlers
resources:
requests:
cpu: "0.1"
memory: 512Mi
limits:
cpu: "1"
memory: 1Gi
proxy:
service:
nodePorts:
http: 30085
https: 30082
chp:
resources:
requests:
cpu: "0.1"
memory: 256Mi
limits:
cpu: "0.5"
memory: 512Mi
singleuser:
storage:
# has no effect when using nfs: this is a min limit not a max
capacity: 5Gi
cpu:
guarantee: 0.1
limit: 1
memory:
guarantee: 256M
limit: 4G