Skip to content

Commit e9f5a20

Browse files
committed
Switch to using binderhub-service chart
1 parent 41940d6 commit e9f5a20

File tree

6 files changed

+397
-248
lines changed

6 files changed

+397
-248
lines changed

chartpress.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ charts:
99
minesweeper:
1010
valuesPath: minesweeper.image
1111
tc-init:
12-
valuesPath: binderhub.jupyterhub.singleuser.initContainers.0.image
12+
valuesPath: jupyterhub.singleuser.initContainers.0.image
1313
- name: mybinder-kube-system
1414
- name: mybinder-tigera-operator

config/hetzner-2i2c-bare.yaml

Lines changed: 19 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,11 @@ cryptnono:
2828
execwhacker:
2929
containerdHostPath: /run/k3s/containerd/containerd.sock
3030

31-
binderhub:
31+
binderhub-service:
3232
config:
3333
BinderHub:
3434
hub_url: https://hub.2i2c-bare.mybinder.org
3535
badge_base_url: https://mybinder.org
36-
sticky_builds: true
3736
image_prefix: registry.2i2c-bare.mybinder.org/i-
3837
# image_prefix: quay.io/mybinder-hetzner-2i2c/image-
3938
# build_docker_host: /var/run/dind/docker.sock
@@ -51,20 +50,8 @@ binderhub:
5150
# DockerRegistry:
5251
# token_url: "https://2lmrrh8f.gra7.container-registry.ovh.net/service/token?service=harbor-registry"
5352

54-
replicas: 2
5553

56-
extraVolumes:
57-
- name: secrets
58-
secret:
59-
secretName: events-archiver-secrets
60-
extraVolumeMounts:
61-
- name: secrets
62-
mountPath: /secrets
63-
readOnly: true
64-
extraEnv:
65-
GOOGLE_APPLICATION_CREDENTIALS: /secrets/service-account.json
66-
67-
dind:
54+
dockerApi:
6855
resources:
6956
requests:
7057
cpu: "4"
@@ -76,27 +63,23 @@ binderhub:
7663
ingress:
7764
hosts:
7865
- 2i2c-bare.mybinder.org
79-
80-
jupyterhub:
81-
hub:
82-
db:
83-
pvc:
84-
storage: 1Gi
85-
storageClassName: openebs-hostpath
86-
# proxy:
87-
# chp:
88-
# resources:
89-
# requests:
90-
# cpu: "1"
91-
# limits:
92-
# cpu: "1"
93-
ingress:
94-
hosts:
95-
- hub.2i2c-bare.mybinder.org
96-
tls:
97-
- secretName: kubelego-tls-hub
98-
hosts:
99-
- hub.2i2c-bare.mybinder.org
66+
tls:
67+
- hosts: [2i2c-bare.mybinder.org]
68+
secretName: https-auto-tls-binder
69+
70+
jupyterhub:
71+
hub:
72+
db:
73+
pvc:
74+
storage: 1Gi
75+
storageClassName: openebs-hostpath
76+
ingress:
77+
hosts:
78+
- hub.2i2c-bare.mybinder.org
79+
tls:
80+
- secretName: kubelego-tls-hub
81+
hosts:
82+
- hub.2i2c-bare.mybinder.org
10083

10184
grafana:
10285
ingress:

mybinder/Chart.yaml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,41 @@
11
apiVersion: v2
22
description: A meta-chart for the binderhub deployment on mybinder.org
33
name: mybinder
4-
version: "0.0.1-set.by.chartpress"
4+
version: "2020.12.4-0.dev.git.6239.h41940d65"
55
kubeVersion: ">= 1.15.0-0"
66
dependencies:
7-
# BinderHub
8-
# Source code: https://github.com/jupyterhub/binderhub/tree/main/helm-chart
9-
# App changelog: https://github.com/jupyterhub/binderhub/blob/main/CHANGES.md
10-
- name: binderhub
11-
version: "1.0.0-0.dev.git.3704.h3883aac1"
12-
repository: https://jupyterhub.github.io/helm-chart
13-
condition: binderhubEnabled
7+
- name: jupyterhub
8+
version: 4.0.0
9+
repository: https://jupyterhub.github.io/helm-chart/
1410

15-
# Ingress-Nginx to route network traffic according to Ingress resources using
16-
# this controller from within k8s.
17-
# Source code: https://github.com/kubernetes/ingress-nginx/tree/main/charts/ingress-nginx
18-
# App changelog: https://github.com/kubernetes/ingress-nginx/blob/main/Changelog.md
11+
- name: binderhub-service
12+
repository: file:///Users/yuvipanda/code/binderhub-service/binderhub-service/
13+
# repository: https://2i2c.org/binderhub-service/
14+
condition: binderhub-service.enabled
15+
version: "0.1.0-0.dev.git.300.h3f0b9be"
16+
17+
# https://github.com/kubernetes/ingress-nginx/tree/main/charts/ingress-nginx
1918
- name: ingress-nginx
2019
version: "4.12.0"
2120
repository: https://kubernetes.github.io/ingress-nginx
2221
condition: ingress-nginx.enabled
2322

2423
# Prometheus for collection of metrics.
25-
# Source code: https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus
26-
# App changelog: https://github.com/prometheus/prometheus/blob/main/CHANGELOG.md
24+
# https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus
2725
- name: prometheus
2826
version: "26.1.0"
2927
repository: https://prometheus-community.github.io/helm-charts
3028
condition: prometheus.enabled
3129

3230
# Grafana for dashboarding of metrics.
33-
# Source code: https://github.com/grafana/helm-charts/tree/main/charts/grafana
34-
# App changelog: https://github.com/grafana/grafana/blob/main/CHANGELOG.md
31+
# https://github.com/grafana/helm-charts/tree/main/charts/grafana
3532
- name: grafana
3633
version: "8.8.2"
3734
repository: https://grafana.github.io/helm-charts
3835
condition: grafana.enabled
3936

4037
# cryptnono, counters crypto mining
41-
# Source code: https://github.com/cryptnono/cryptnono/
38+
# https://github.com/cryptnono/cryptnono/
4239
- name: cryptnono
4340
version: "0.3.2-0.dev.git.156.hdab4ec8"
4441
repository: https://cryptnono.github.io/cryptnono/

mybinder/templates/hpa.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.

mybinder/templates/proxy-patches/configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ data:
3434
<html>
3535
<head>
3636
<title>Binder not found</title>
37-
{{ $rootUrl := printf "https://%s" (index .Values.binderhub.ingress.hosts 0) }}
37+
{{ $rootUrl := printf "https://%s" (index (index .Values "binderhub-service").ingress.hosts 0) }}
3838
<link href="{{ $rootUrl }}/static/dist/styles.css" rel="stylesheet">
3939
</head>
4040
<body>

0 commit comments

Comments
 (0)