From 4ed63464123c7df56da763b741fd1226e2a106db Mon Sep 17 00:00:00 2001 From: Arno Uhlig Date: Thu, 21 Dec 2017 00:41:07 -0800 Subject: [PATCH] fix default backend and use it only for 502,503,504 (#134) --- .../charts/nginx-ingress/templates/controller-configmap.yaml | 2 +- charts/kubernikus-system/charts/nginx-ingress/values.yaml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/charts/kubernikus-system/charts/nginx-ingress/templates/controller-configmap.yaml b/charts/kubernikus-system/charts/nginx-ingress/templates/controller-configmap.yaml index 63c1cc0a25..59e4f3d081 100755 --- a/charts/kubernikus-system/charts/nginx-ingress/templates/controller-configmap.yaml +++ b/charts/kubernikus-system/charts/nginx-ingress/templates/controller-configmap.yaml @@ -10,7 +10,7 @@ metadata: name: {{ template "controller.fullname" . }} data: enable-vts-status: "{{ .Values.controller.stats.enabled }}" - custom-http-errors: 404,500 + custom-http-errors: {{.Values.defaultBackend.custom_http_errors}} {{- if .Values.controller.config }} {{ toYaml .Values.controller.config | indent 2 }} {{- end }} diff --git a/charts/kubernikus-system/charts/nginx-ingress/values.yaml b/charts/kubernikus-system/charts/nginx-ingress/values.yaml index 27d11f2398..0605e608ee 100755 --- a/charts/kubernikus-system/charts/nginx-ingress/values.yaml +++ b/charts/kubernikus-system/charts/nginx-ingress/values.yaml @@ -143,9 +143,11 @@ defaultBackend: name: default-backend image: repository: sapcc/custombackend - tag: "0.1" + tag: "0.3" pullPolicy: IfNotPresent + custom_http_errors: 502,503,504 + extraArgs: {} ## Node tolerations for server scheduling to nodes with taints