Skip to content

Commit

Permalink
Merge pull request #3182 from yuvipanda/obj
Browse files Browse the repository at this point in the history
Fixes for 2i2c hetzner member
  • Loading branch information
yuvipanda authored Jan 22, 2025
2 parents 91391ab + e9d05d7 commit 7d5333e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
16 changes: 8 additions & 8 deletions config/hetzner-2i2c.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ projectName: hetzner-2i2c

registry:
enabled: true
replicas: 4
replicas: 1
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
regionendpoint: https://nbg1.your-objectstorage.com
bucket: mybinder-2i2c-registry
region: does-not-matter
storage:
filesystem:
Expand Down Expand Up @@ -47,12 +47,12 @@ binderhub:
- '--DockerEngine.extra_init_args={"timeout":1200}'

LaunchQuota:
total_quota: 200
total_quota: 250

# DockerRegistry:
# token_url: "https://2lmrrh8f.gra7.container-registry.ovh.net/service/token?service=harbor-registry"

replicas: 1
replicas: 2

extraVolumes:
- name: secrets
Expand All @@ -68,11 +68,11 @@ binderhub:
dind:
resources:
requests:
cpu: "2"
cpu: "4"
memory: 12Gi
limits:
cpu: "6"
memory: 12Gi
cpu: "8"
memory: 16Gi

ingress:
hosts:
Expand Down
2 changes: 1 addition & 1 deletion config/prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ federationRedirect:
hetzner-2i2c:
prime: true
url: https://2i2c.mybinder.org
weight: 40
weight: 60
health: https://2i2c.mybinder.org/health
versions: https://2i2c.mybinder.org/versions
gesis:
Expand Down
6 changes: 4 additions & 2 deletions mybinder/templates/registry/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ metadata:
release: {{ .Release.Name }}
annotations:
kubernetes.io/tls-acme: "true"
# things be big yo
nginx.ingress.kubernetes.io/proxy-body-size: 4096m
# This has to accomodate the max size of a single docker layer, which can be huge.
# I had previously set this to 4G thinking 'that should be big enough' and was
# immediately proven wrong. This is set to 16G now
nginx.ingress.kubernetes.io/proxy-body-size: 16384m
spec:
ingressClassName: nginx
rules:
Expand Down

0 comments on commit 7d5333e

Please sign in to comment.