File tree Expand file tree Collapse file tree 3 files changed +32
-0
lines changed
Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 6969 mountPath : /etc/jupyterhub-home-nfs/mounted-secret
7070 resources : {{ toJson .Values.quotaEnforcer.resources }}
7171 {{- end }}
72+ {{- if .Values.autoResizer.enabled }}
73+ - name : auto-xfs-resizer
74+ # Use same image as quotaEnforcer as it has xfs_growfs
75+ image : " {{ .Values.quotaEnforcer.image.repository }}:{{ .Values.quotaEnforcer.image.tag }}"
76+ command :
77+ - /bin/bash
78+ - -c
79+ - |
80+ while true; do
81+ xfs_growfs /export
82+ sleep 5m
83+ done
84+ securityContext :
85+ privileged : true
86+ volumeMounts :
87+ - name : home-directories
88+ mountPath : /export
89+ resources : {{ toJson .Values.autoResizer.resources }}
90+ {{- end }}
7291 {{- if .Values.prometheusExporter.enabled }}
7392 - name : metrics-exporter
7493 image : " {{ .Values.prometheusExporter.image.repository }}:{{ .Values.prometheusExporter.image.tag }}"
Original file line number Diff line number Diff line change 1717 },
1818 "required" : [" image" ]
1919 },
20+ "autoResizer" : {
21+ "type" : " object" ,
22+ "properties" : {
23+ "enabled" : { "type" : " boolean" },
24+ "resources" : { "type" : " object" }
25+ }
26+ },
2027 "quotaEnforcer" : {
2128 "type" : " object" ,
2229 "properties" : {
Original file line number Diff line number Diff line change @@ -32,6 +32,12 @@ nfsServer:
3232 allowedClients :
3333 - " 127.0.0.1" # allow localhost
3434
35+ # Automatic filesystem resizer, so increases in underlying disk size
36+ # are immediately reflected in available file system
37+ autoResizer :
38+ enabled : true
39+ resources : {}
40+
3541# Quota enforcer configuration
3642# This container enforces the quota on the home directories
3743
You can’t perform that action at this time.
0 commit comments