Skip to content

Commit a8307fb

Browse files
authored
feat: enable 15Gi size limit on emptyDir (#7081)
* feat: enable 15Gi size limit on emptyDir * docs: add note about reclaiming storage
1 parent c01f0fd commit a8307fb

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

config/clusters/projectpythia-binder/binderhub.values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ binderhub-service:
120120
nodeSelector:
121121
hub.jupyter.org/node-purpose:
122122
capi.stackhpc.com/node-group: user-m3-large
123+
storage:
124+
emptyDir:
125+
sizeLimit: 15Gi
123126
config:
124127
GitHubRepoProvider:
125128
allowed_specs:

docs/howto/features/imagebuilding.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,4 +189,13 @@ to effectively repeat certain config values below.
189189
node_selector:
190190
node.kubernetes.io/instance-type: <e.g. r5.xlarge>
191191
192+
1. Mark the Docker storage volume as ephemeral, and owned by the kubelet:
193+
194+
```yaml
195+
binderhub-service:
196+
dockerApi:
197+
storage:
198+
emptyDir:
199+
sizeLimit: 15Gi
192200
```
201+
This will ensure that once the volume exceeds the storage limit, the storage is ultimately reclaimed by the node. This is particularly useful for clusters which do not regularly recycle nodes, such as nodepools that do not scale to zero.

helm-charts/basehub/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies:
1515
version: 4.0.0
1616
repository: https://jupyterhub.github.io/helm-chart/
1717
- name: binderhub-service
18-
version: 0.1.0-0.dev.git.316.h27f15f4
18+
version: 0.1.0-0.dev.git.318.h477a6fa
1919
repository: https://2i2c.org/binderhub-service/
2020
condition: binderhub-service.enabled
2121
# If bumping the version of dask-gateway, please also bump the default version set

0 commit comments

Comments
 (0)