Skip to content

Commit 56e0e4e

Browse files
author
Callum Mole
authored
Merge pull request #2170 from callummole/turing-staging
Deploy staging cluster #1935
2 parents 7fb5359 + b18aba4 commit 56e0e4e

File tree

5 files changed

+131
-1
lines changed

5 files changed

+131
-1
lines changed

.github/workflows/cd.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ jobs:
8282
chartpress_args: ""
8383
helm_version: ""
8484

85+
- federation_member: turing-staging
86+
binder_url: https://binder-staging.mybinder.turing.ac.uk
87+
hub_url: https://hub-staging.mybinder.turing.ac.uk
88+
chartpress_args: ""
89+
helm_version: ""
90+
8591
steps:
8692
- name: "Stage 0: Update env vars based on job matrix arguments"
8793
run: |

config/staging.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,4 +165,7 @@ federationRedirect:
165165
ovh:
166166
weight: 0
167167
turing:
168-
weight: 0
168+
url: https://binder-staging.mybinder.turing.ac.uk
169+
weight: 4
170+
health: https://binder-staging.mybinder.turing.ac.uk/health
171+
versions: https://binder-staging.mybinder.turing.ac.uk/versions

config/turing-staging.yaml

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
projectName: turing
2+
3+
letsencrypt:
4+
contactEmail: [email protected]
5+
6+
binderhub:
7+
config:
8+
BinderHub:
9+
pod_quota: 20
10+
hub_url: https://hub-staging.mybinder.turing.ac.uk
11+
badge_base_url: https://mybinder.org
12+
sticky_builds: true
13+
# Docker Hub registry for Turing
14+
use_registry: true
15+
image_prefix: turingmybinder/binder-staging-r2d-g5b5b759-
16+
17+
replicas: 1
18+
ingress:
19+
enabled: true
20+
hosts:
21+
- binder-staging.mybinder.turing.ac.uk
22+
# - staging.turing.mybinder.org
23+
annotations:
24+
kubernetes.io/ingress.class: nginx
25+
tls:
26+
- secretName: turing-binder-tls-crt
27+
hosts:
28+
- binder-staging.mybinder.turing.ac.uk
29+
# staging.turing.mybinder.org can be reinstated once it has been added to mybinder.org DNS Zone.
30+
# - staging.turing.mybinder.org
31+
32+
extraVolumes:
33+
- name: event-secret
34+
secret:
35+
secretName: events-archiver-secrets
36+
extraVolumeMounts:
37+
- name: event-secret
38+
mountPath: /event-secret
39+
readOnly: true
40+
extraEnv:
41+
GOOGLE_APPLICATION_CREDENTIALS: /event-secret/service-account.json
42+
43+
jupyterhub:
44+
ingress:
45+
enabled: true
46+
annotations:
47+
kubernetes.io/ingress.class: nginx
48+
kubernetes.io/tls-acme: "true"
49+
hosts:
50+
- hub-staging.mybinder.turing.ac.uk
51+
tls:
52+
- secretName: turing-staging-hub-tls-crt
53+
hosts:
54+
- hub-staging.mybinder.turing.ac.uk
55+
56+
scheduling:
57+
userPlaceholder:
58+
replicas: 2
59+
60+
imageCleaner:
61+
# Use 40GB as upper limit, size is given in bytes
62+
imageGCThresholdHigh: 40e9
63+
imageGCThresholdLow: 30e9
64+
imageGCThresholdType: "absolute"
65+
66+
grafana:
67+
ingress:
68+
annotations:
69+
kubernetes.io/ingress.class: nginx
70+
kubernetes.io/tls-acme: "true"
71+
hosts:
72+
- grafana-staging.mybinder.turing.ac.uk
73+
tls:
74+
- secretName: turing-staging-grafana-tls-crt
75+
hosts:
76+
- grafana-staging.mybinder.turing.ac.uk
77+
datasources:
78+
datasources.yaml:
79+
apiVersion: 1
80+
datasources:
81+
- name: prometheus
82+
orgId: 1
83+
type: prometheus
84+
url: https://prometheus-staging.mybinder.turing.ac.uk
85+
access: direct
86+
isDefault: true
87+
editable: false
88+
persistence:
89+
storageClassName: default
90+
91+
prometheus:
92+
server:
93+
retention: 21d
94+
ingress:
95+
annotations:
96+
kubernetes.io/ingress.class: nginx
97+
kubernetes.io/tls-acme: "true"
98+
hosts:
99+
- prometheus-staging.mybinder.turing.ac.uk
100+
# - prometheus.staging.turing.mybinder.org
101+
tls:
102+
- hosts:
103+
- prometheus-staging.mybinder.turing.ac.uk
104+
# - prometheus.staging.turing.mybinder.org
105+
secretName: turing-staging-prometheus-tls-crt
106+
persistentVolume:
107+
size: 64Gi
108+
109+
ingress-nginx:
110+
controller:
111+
service:
112+
loadBalancerIP: 20.90.143.25
113+
scope:
114+
enabled: true
115+
116+
static:
117+
ingress:
118+
hosts:
119+
- static-staging.mybinder.turing.ac.uk
120+
tls:
121+
secretName: turing-staging-static-tls-crt

secrets/ban.py

-547 Bytes
Binary file not shown.

secrets/config/turing-staging.yaml

2.85 KB
Binary file not shown.

0 commit comments

Comments
 (0)