diff --git a/manifests/07-downloads-deployment.yaml b/manifests/07-downloads-deployment.yaml index 53979a20bb..1f0647fa46 100644 --- a/manifests/07-downloads-deployment.yaml +++ b/manifests/07-downloads-deployment.yaml @@ -59,7 +59,9 @@ spec: - '-c' - | cat <>/tmp/serve.py - import BaseHTTPServer, os, re, SimpleHTTPServer, socket, tarfile, tempfile, threading, time, zipfile + import BaseHTTPServer, os, re, signal, SimpleHTTPServer, socket, sys, tarfile, tempfile, threading, time, zipfile + + signal.signal(signal.SIGTERM, lambda signum, frame: sys.exit(0)) # Launch multiple listeners as threads class Thread(threading.Thread):