|
| 1 | +projectName: hetzner-2i2c-bare |
| 2 | + |
| 3 | +registry: |
| 4 | + enabled: true |
| 5 | + replicas: 1 |
| 6 | + config: |
| 7 | + storage: |
| 8 | + # Uncomment this and comment out the s3 config to use filesystem |
| 9 | + # filesystem: |
| 10 | + # rootdirectory: /var/lib/registry |
| 11 | + s3: |
| 12 | + regionendpoint: https://nbg1.your-objectstorage.com |
| 13 | + bucket: mybinder-2i2c-registry |
| 14 | + region: does-not-matter |
| 15 | + storage: |
| 16 | + filesystem: |
| 17 | + storageClassName: "local-path" |
| 18 | + ingress: |
| 19 | + hosts: |
| 20 | + - registry.2i2c-bare.mybinder.org |
| 21 | + |
| 22 | +cryptnono: |
| 23 | + detectors: |
| 24 | + monero: |
| 25 | + enabled: false |
| 26 | + execwhacker: |
| 27 | + containerdHostPath: /run/k3s/containerd/containerd.sock |
| 28 | + |
| 29 | +binderhub: |
| 30 | + config: |
| 31 | + BinderHub: |
| 32 | + hub_url: https://hub.2i2c-bare.mybinder.org |
| 33 | + badge_base_url: https://mybinder.org |
| 34 | + sticky_builds: true |
| 35 | + image_prefix: registry.2i2c-bare.mybinder.org/i- |
| 36 | + # image_prefix: quay.io/mybinder-hetzner-2i2c/image- |
| 37 | + # build_docker_host: /var/run/dind/docker.sock |
| 38 | + # TODO: we should have CPU requests, too |
| 39 | + # use this to limit the number of builds per node |
| 40 | + # complicated: dind memory request + KubernetesBuildExecutor.memory_request * builds_per_node ~= node memory |
| 41 | + KubernetesBuildExecutor: |
| 42 | + memory_request: "2G" |
| 43 | + memory_limit: "4G" |
| 44 | + docker_host: /var/run/dind/docker.sock |
| 45 | + repo2docker_extra_args: |
| 46 | + # try to avoid timeout pushing to local registry |
| 47 | + # default is 60 |
| 48 | + # this must have no spaces to be processed by repo2docker correctly |
| 49 | + - '--DockerEngine.extra_init_args={"timeout":1200}' |
| 50 | + |
| 51 | + LaunchQuota: |
| 52 | + total_quota: 64 |
| 53 | + |
| 54 | + # DockerRegistry: |
| 55 | + # token_url: "https://2lmrrh8f.gra7.container-registry.ovh.net/service/token?service=harbor-registry" |
| 56 | + |
| 57 | + replicas: 2 |
| 58 | + |
| 59 | + extraVolumes: |
| 60 | + - name: secrets |
| 61 | + secret: |
| 62 | + secretName: events-archiver-secrets |
| 63 | + extraVolumeMounts: |
| 64 | + - name: secrets |
| 65 | + mountPath: /secrets |
| 66 | + readOnly: true |
| 67 | + extraEnv: |
| 68 | + GOOGLE_APPLICATION_CREDENTIALS: /secrets/service-account.json |
| 69 | + |
| 70 | + dind: |
| 71 | + daemonset: |
| 72 | + extraArgs: |
| 73 | + # Increase limit from default of 5, as we have only one builder node |
| 74 | + # But there are enough resources on the node to handle it |
| 75 | + - --max-concurrent-uploads=32 |
| 76 | + resources: |
| 77 | + requests: |
| 78 | + cpu: "4" |
| 79 | + memory: 12Gi |
| 80 | + limits: |
| 81 | + cpu: "8" |
| 82 | + memory: 16Gi |
| 83 | + |
| 84 | + ingress: |
| 85 | + hosts: |
| 86 | + - 2i2c-bare.mybinder.org |
| 87 | + |
| 88 | + jupyterhub: |
| 89 | + # proxy: |
| 90 | + # chp: |
| 91 | + # resources: |
| 92 | + # requests: |
| 93 | + # cpu: "1" |
| 94 | + # limits: |
| 95 | + # cpu: "1" |
| 96 | + ingress: |
| 97 | + hosts: |
| 98 | + - hub.2i2c-bare.mybinder.org |
| 99 | + tls: |
| 100 | + - secretName: kubelego-tls-hub |
| 101 | + hosts: |
| 102 | + - hub.2i2c-bare.mybinder.org |
| 103 | + |
| 104 | + imageCleaner: |
| 105 | + # Use 300GB as upper limit, size is given in bytes |
| 106 | + imageGCThresholdHigh: 300e9 |
| 107 | + imageGCThresholdLow: 100e9 |
| 108 | + imageGCThresholdType: "absolute" |
| 109 | + # don't cordon single-node cluster while cleaning |
| 110 | + cordon: false |
| 111 | + |
| 112 | +grafana: |
| 113 | + ingress: |
| 114 | + hosts: |
| 115 | + - grafana.2i2c-bare.mybinder.org |
| 116 | + tls: |
| 117 | + - hosts: |
| 118 | + - grafana.2i2c-bare.mybinder.org |
| 119 | + secretName: kubelego-tls-grafana |
| 120 | + datasources: |
| 121 | + datasources.yaml: |
| 122 | + apiVersion: 1 |
| 123 | + datasources: |
| 124 | + - name: prometheus |
| 125 | + orgId: 1 |
| 126 | + type: prometheus |
| 127 | + url: https://prometheus.2i2c-bare.mybinder.org |
| 128 | + access: direct |
| 129 | + isDefault: true |
| 130 | + editable: false |
| 131 | + # persistence: |
| 132 | + # storageClassName: csi-cinder-high-speed |
| 133 | + |
| 134 | +prometheus: |
| 135 | + server: |
| 136 | + persistentVolume: |
| 137 | + size: 50Gi |
| 138 | + retention: 30d |
| 139 | + ingress: |
| 140 | + hosts: |
| 141 | + - prometheus.2i2c-bare.mybinder.org |
| 142 | + tls: |
| 143 | + - hosts: |
| 144 | + - prometheus.2i2c-bare.mybinder.org |
| 145 | + secretName: kubelego-tls-prometheus |
| 146 | + |
| 147 | +ingress-nginx: |
| 148 | + controller: |
| 149 | + replicas: 1 |
| 150 | + scope: |
| 151 | + enabled: true |
| 152 | + service: |
| 153 | + loadBalancerIP: |
| 154 | + |
| 155 | +static: |
| 156 | + ingress: |
| 157 | + hosts: |
| 158 | + - static.2i2c-bare.mybinder.org |
| 159 | + tls: |
| 160 | + secretName: kubelego-tls-static |
0 commit comments