Skip to content

Commit bb45ce1

Browse files
authored
Merge pull request containerd#9799 from dims/fix-for-k8s-nfs-related-tests
Fix for k8s nfs related tests probably caused by `ulimit` changes
2 parents 128f249 + 23ebfd0 commit bb45ce1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

contrib/gce/configure.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,12 @@ fi
250250
echo "export PATH=${CONTAINERD_HOME}/usr/local/bin/:${CONTAINERD_HOME}/usr/local/sbin/:\$PATH" > \
251251
/etc/profile.d/containerd_env.sh
252252

253+
mkdir -p /etc/systemd/system/containerd.service.d/
254+
cat >> /etc/systemd/system/containerd.service.d/override.conf <<EOF
255+
[Service]
256+
LimitNOFILE=1048576
257+
EOF
258+
253259
# Run extra init script for test.
254260
if [ "${CONTAINERD_TEST:-"false"}" == "true" ]; then
255261
# EXTRA_INIT_SCRIPT is the name of the extra init script after being downloaded.

0 commit comments

Comments
 (0)