forked from jupyterhub/mybinder.org-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhetzner-2i2c.yaml
137 lines (122 loc) · 3.09 KB
/
hetzner-2i2c.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
projectName: hetzner-2i2c
registry:
enabled: true
config:
storage:
# Uncomment this and comment out the s3 config to use filesystem
# filesystem:
# rootdirectory: /var/lib/registry
s3:
regionendpoint: https://fsn1.your-objectstorage.com
bucket: mybinder-2i2c-registry-hetzner
region: does-not-matter
storage:
filesystem:
storageClassName: "local-path"
ingress:
hosts:
- registry.2i2c.mybinder.org
cryptnono:
detectors:
monero:
enabled: false
binderhub:
config:
BinderHub:
hub_url: https://hub.2i2c.mybinder.org
badge_base_url: https://mybinder.org
sticky_builds: true
image_prefix: registry.2i2c.mybinder.org/i-
# image_prefix: quay.io/mybinder-hetzner-2i2c/image-
# build_docker_host: /var/run/dind/docker.sock
# TODO: we should have CPU requests, too
# use this to limit the number of builds per node
# complicated: dind memory request + KubernetesBuildExecutor.memory_request * builds_per_node ~= node memory
KubernetesBuildExecutor:
memory_request: "2G"
docker_host: /var/run/dind/docker.sock
LaunchQuota:
total_quota: 300
# DockerRegistry:
# token_url: "https://2lmrrh8f.gra7.container-registry.ovh.net/service/token?service=harbor-registry"
replicas: 1
extraVolumes:
- name: secrets
secret:
secretName: events-archiver-secrets
extraVolumeMounts:
- name: secrets
mountPath: /secrets
readOnly: true
extraEnv:
GOOGLE_APPLICATION_CREDENTIALS: /secrets/service-account.json
dind: {}
ingress:
hosts:
- 2i2c.mybinder.org
jupyterhub:
# proxy:
# chp:
# resources:
# requests:
# cpu: "1"
# limits:
# cpu: "1"
ingress:
hosts:
- hub.2i2c.mybinder.org
tls:
- secretName: kubelego-tls-hub
hosts:
- hub.2i2c.mybinder.org
imageCleaner:
# Use 40GB as upper limit, size is given in bytes
imageGCThresholdHigh: 40e9
imageGCThresholdLow: 30e9
imageGCThresholdType: "absolute"
grafana:
ingress:
hosts:
- grafana.2i2c.mybinder.org
tls:
- hosts:
- grafana.2i2c.mybinder.org
secretName: kubelego-tls-grafana
datasources:
datasources.yaml:
apiVersion: 1
datasources:
- name: prometheus
orgId: 1
type: prometheus
url: https://prometheus.2i2c.mybinder.org
access: direct
isDefault: true
editable: false
# persistence:
# storageClassName: csi-cinder-high-speed
prometheus:
server:
persistentVolume:
size: 50Gi
retention: 30d
ingress:
hosts:
- prometheus.2i2c.mybinder.org
tls:
- hosts:
- prometheus.2i2c.mybinder.org
secretName: kubelego-tls-prometheus
ingress-nginx:
controller:
replicas: 1
scope:
enabled: true
service:
loadBalancerIP: 116.203.245.43
static:
ingress:
hosts:
- static.2i2c.mybinder.org
tls:
secretName: kubelego-tls-static