Skip to content

Commit cf81f3a

Browse files
committed
BUG/MINOR: s6: React to SIGUSR1 when pod is getting deleted
1 parent ca59756 commit cf81f3a

File tree

1 file changed

+8
-0
lines changed
  • fs/etc/services.d/ingress-controller

1 file changed

+8
-0
lines changed

fs/etc/services.d/ingress-controller/run

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
#!/usr/bin/with-contenv sh
22

3+
if [ ! -f /var/run/s6/services/.s6-svscan/SIGUSR1 ]; then
4+
cat > /var/run/s6/services/.s6-svscan/SIGUSR1 <<EOF
5+
#!/bin/sh
6+
kill -SIGTERM 1
7+
EOF
8+
chmod +x /var/run/s6/services/.s6-svscan/SIGUSR1
9+
fi
10+
311
MEMLIMIT=$(free -m | awk '/Mem:/ {print int($2 / 3)}')
412

513
CG_LIMIT_FILE="/sys/fs/cgroup/memory/memory.limit_in_bytes"

0 commit comments

Comments
 (0)