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:
Pete Birley 2019-07-15 20:03:02 -05:00 committed by Pete Birley
parent 3b5a1c7909
commit e96bdd9fb6
2 changed files with 2 additions and 2 deletions

View File

@ -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" }}

View File

@ -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 \