Ingress: Clean prometheus-nginx.socket on startup

This PS cleans the prometheus-nginx.socket on startup of the container,
which is required to allow the container, as opposed to the pod, restart.

Change-Id: I7906e85a200f6fb92467371218b4e5957add39f4
Signed-off-by: Pete Birley <pete@port.direct>
This commit is contained in:
Pete Birley 2019-06-17 15:26:46 -05:00 committed by Pete Birley
parent 8ee35e896f
commit fc58be6a93
2 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,7 @@ set -ex
COMMAND="${@:-start}"
function start () {
rm -fv /tmp/prometheus-nginx.socket
exec /usr/bin/dumb-init \
/nginx-ingress-controller \
{{- if eq .Values.deployment.mode "namespace" }}

View File

@ -20,6 +20,7 @@ set -ex
COMMAND="${@:-start}"
function start () {
rm -fv /tmp/prometheus-nginx.socket
exec /usr/bin/dumb-init \
/nginx-ingress-controller \
--force-namespace-isolation \