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:
parent
8ee35e896f
commit
fc58be6a93
@ -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" }}
|
||||
|
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user