File tree Expand file tree Collapse file tree 3 files changed +37
-18
lines changed Expand file tree Collapse file tree 3 files changed +37
-18
lines changed Original file line number Diff line number Diff line change @@ -42,18 +42,21 @@ spec:
4242 {{- end }}
4343 - name : nodeplugin
4444 image : {{ .Values.nodeplugin.plugin.image.repository }}:{{ .Values.nodeplugin.plugin.image.tag }}
45- args :
46- - -v={{ .Values.logVerbosityLevel }}
47- - --nodeid=$(NODE_ID)
48- - --endpoint=$(CSI_ENDPOINT)
49- - --drivername=$(CSI_DRIVERNAME)
50- - --start-automount-daemon={{ .Values.startAutomountDaemon }}
51- - --automount-startup-timeout={{ .Values.automountDaemonStartupTimeout }}
52- - --automount-unmount-timeout={{ .Values.automountDaemonUnmountTimeout }}
53- - --role=identity,node
54- {{- if .Values.cache.alien.enabled }}
55- - --has-alien-cache
56- {{- end }}
45+ command :
46+ - /bin/bash
47+ - -c
48+ - |
49+ ulimit -n {{ .Values._rlimit_nofile }}
50+ /csi-cvmfsplugin \
51+ -v={{ .Values.logVerbosityLevel }} \
52+ --nodeid=$(NODE_ID) \
53+ --endpoint=$(CSI_ENDPOINT) \
54+ --drivername=$(CSI_DRIVERNAME) \
55+ --start-automount-daemon={{ .Values.startAutomountDaemon }} \
56+ --automount-startup-timeout={{ .Values.automountDaemonStartupTimeout }} \
57+ --automount-unmount-timeout={{ .Values.automountDaemonUnmountTimeout }} \
58+ --role=identity,node \
59+ --has-alien-cache={{ .Values.cache.alien.enabled }}
5760 imagePullPolicy : {{ .Values.nodeplugin.plugin.image.pullPolicy }}
5861 securityContext :
5962 privileged : true
Original file line number Diff line number Diff line change @@ -228,3 +228,9 @@ fullNameOverride: ""
228228# Extra Kubernetes object metadata labels to be added the ones generated
229229# with cvmfs-csi.common.metaLabels template.
230230extraMetaLabels : {}
231+
232+ # Temporary workaround for CVMFS client hangs when rlimit_nofile is too high.
233+ # See https://github.com/cvmfs-contrib/cvmfs-csi/issues/57 for details.
234+ # NOTE: this value will be deprecated once the issue is fixed.
235+ # Empty value "" disables the workaround.
236+ _rlimit_nofile : " "
Original file line number Diff line number Diff line change @@ -40,12 +40,22 @@ spec:
4040 mountPath : /registration
4141 - name : nodeplugin
4242 image : registry.cern.ch/magnum/cvmfs-csi:v2.0.0
43- args :
44- - -v=5
45- - --nodeid=$(NODE_ID)
46- - --endpoint=$(CSI_ENDPOINT)
47- - --drivername=$(CSI_DRIVERNAME)
48- - --role=identity,node
43+ command :
44+ - /bin/bash
45+ - -c
46+ - |
47+ # Temporary workaround for CVMFS client hangs when rlimit_nofile is too high.
48+ # See https://github.com/cvmfs-contrib/cvmfs-csi/issues/57 for details.
49+ ulimit -n 1048576
50+
51+ /csi-cvmfsplugin \
52+ -v=5 \
53+ --nodeid=$(NODE_ID) \
54+ --endpoint=$(CSI_ENDPOINT) \
55+ --drivername=$(CSI_DRIVERNAME) \
56+ --start-automount-daemon=true \
57+ --role=identity,node \
58+ --has-alien-cache=false
4959 imagePullPolicy : IfNotPresent
5060 securityContext :
5161 privileged : true
You can’t perform that action at this time.
0 commit comments