Ingress: Clean up tmp dir entirely on container start
This PS cleans up the container dir entirely on container restart, as sometimes remnets of previous runs can cause issues. Change-Id: I873667a8a57bca6096cbe777ee83ef8648a368d4 Signed-off-by: Pete Birley <pete@port.direct>
This commit is contained in:
parent
3b5a1c7909
commit
e96bdd9fb6
@ -20,7 +20,7 @@ set -ex
|
||||
COMMAND="${@:-start}"
|
||||
|
||||
function start () {
|
||||
rm -fv /tmp/prometheus-nginx.socket
|
||||
find /tmp/ -maxdepth 1 -writable | grep -v "^/tmp/$" | xargs -L1 -r rm -rfv
|
||||
exec /usr/bin/dumb-init \
|
||||
/nginx-ingress-controller \
|
||||
{{- if eq .Values.deployment.mode "namespace" }}
|
||||
|
@ -20,7 +20,7 @@ set -ex
|
||||
COMMAND="${@:-start}"
|
||||
|
||||
function start () {
|
||||
rm -fv /tmp/prometheus-nginx.socket
|
||||
find /tmp/ -maxdepth 1 -writable | grep -v "^/tmp/$" | xargs -L1 -r rm -rfv
|
||||
exec /usr/bin/dumb-init \
|
||||
/nginx-ingress-controller \
|
||||
--force-namespace-isolation \
|
||||
|
Loading…
Reference in New Issue
Block a user