-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-template.yaml
41 lines (38 loc) · 1.27 KB
/
config-template.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
hub:
cookieSecret: "%s"
proxy:
secretToken: "%s"
singleuser:
image:
name: %s
tag: %s
cpu:
limit: %d
guarantee: %d
memory:
limit: %s
guarantee: %s
initContainers:
- name: init-iptables
image: gcr.io/jupyterhub-54321/alpine-plus-iptables:v1
command: ["sh", "-c", "iptables -A OUTPUT -d 10.0.0.0/8 -m state --state NEW -j ACCEPT && iptables -A OUTPUT -d 127.0.0.0/8 -m state --state NEW -j ACCEPT && iptables -A OUTPUT -m state --state NEW -j DROP" ]
securityContext:
runAsUser: 0
capabilities:
add:
- NET_ADMIN
- NET_RAW
hub:
extraConfig: |
c.JupyterHub.authenticator_class = 'jwtauthenticator.jwtauthenticator.JSONWebTokenAuthenticator'
c.JSONWebTokenAuthenticator.signing_certificate = '/pubkeys/jwt-pubkey' # The certificate used to sign the incoming JSONWebToken, must be in PEM Format
c.JSONWebTokenAuthenticator.username_claim_field = 'identifier' # The claim field contianing the username/sAMAccountNAme/userPrincipalName
c.JSONWebTokenAuthenticator.login_redirect = 'https://www.safaribooksonline.com/training/materials/external/?url='
image:
name: gcr.io/jupyterhub-54321/k8s-hub
tag: v0.2
cull:
enabled: %s
users: false
timeout: %d
every: 600