diff --git a/ingress/templates/bin/_ingress-controller.sh.tpl b/ingress/templates/bin/_ingress-controller.sh.tpl index 550c57c51..a484e98d0 100644 --- a/ingress/templates/bin/_ingress-controller.sh.tpl +++ b/ingress/templates/bin/_ingress-controller.sh.tpl @@ -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" }} diff --git a/mariadb/templates/bin/_mariadb-ingress-controller.sh.tpl b/mariadb/templates/bin/_mariadb-ingress-controller.sh.tpl index 903c947fa..1d12a4ac2 100644 --- a/mariadb/templates/bin/_mariadb-ingress-controller.sh.tpl +++ b/mariadb/templates/bin/_mariadb-ingress-controller.sh.tpl @@ -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 \