From 99a77eefda0171d1829b092b260e56087ce152fe Mon Sep 17 00:00:00 2001 From: "KHIYANI, RAHUL (rk0850)" Date: Tue, 26 May 2020 09:57:30 -0500 Subject: [PATCH] error-pages: updating the defaultbackend version to 1.4 removing the command "/tmp/ingress-error-pages.sh" script as the 1.4 version already uses "/server" exec https://hub.docker.com/layers/siriuszg/defaultbackend/1.4/images/sha256-989154cad9fa0edab79acd8904b3ed643f3325fe827616ffa7c1181bb1e1321b?context=explore Change-Id: I3769abeea16254fe5cc4f0f92eb8e8d89cf356a6 --- .../templates/bin/_ingress-error-pages.sh.tpl | 24 ------------------- ingress/templates/configmap-bin.yaml | 2 -- ingress/templates/deployment-error.yaml | 17 ------------- ingress/values.yaml | 2 +- 4 files changed, 1 insertion(+), 44 deletions(-) delete mode 100644 ingress/templates/bin/_ingress-error-pages.sh.tpl diff --git a/ingress/templates/bin/_ingress-error-pages.sh.tpl b/ingress/templates/bin/_ingress-error-pages.sh.tpl deleted file mode 100644 index b490f223e..000000000 --- a/ingress/templates/bin/_ingress-error-pages.sh.tpl +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -{{/* -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/}} - -set -ex -COMMAND="${@:-start}" - -if [ "x${COMMAND}" == "xstart" ]; then - exec /server -elif [ "x${COMMAND}" == "xstop" ]; then - kill -TERM 1 -fi diff --git a/ingress/templates/configmap-bin.yaml b/ingress/templates/configmap-bin.yaml index 02709c4b6..c70b0c900 100644 --- a/ingress/templates/configmap-bin.yaml +++ b/ingress/templates/configmap-bin.yaml @@ -34,6 +34,4 @@ data: {{- end }} ingress-controller.sh: | {{ tuple "bin/_ingress-controller.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }} - ingress-error-pages.sh: | -{{ tuple "bin/_ingress-error-pages.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }} {{- end }} diff --git a/ingress/templates/deployment-error.yaml b/ingress/templates/deployment-error.yaml index e48bdeec3..417e63d4f 100644 --- a/ingress/templates/deployment-error.yaml +++ b/ingress/templates/deployment-error.yaml @@ -66,27 +66,10 @@ spec: timeoutSeconds: 5 ports: - containerPort: 8080 - command: - - /tmp/ingress-error-pages.sh - - start - lifecycle: - preStop: - exec: - command: - - /tmp/ingress-error-pages.sh - - stop volumeMounts: - name: pod-tmp mountPath: /tmp - - name: ingress-bin - mountPath: /tmp/ingress-error-pages.sh - subPath: ingress-error-pages.sh - readOnly: true volumes: - name: pod-tmp emptyDir: {} - - name: ingress-bin - configMap: - name: ingress-bin - defaultMode: 0555 {{- end }} diff --git a/ingress/values.yaml b/ingress/values.yaml index 8fe12e2c7..2257854bb 100644 --- a/ingress/values.yaml +++ b/ingress/values.yaml @@ -27,7 +27,7 @@ images: ingress: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.23.0 ingress_module_init: docker.io/openstackhelm/neutron:stein-ubuntu_bionic ingress_routed_vip: docker.io/openstackhelm/neutron:stein-ubuntu_bionic - error_pages: gcr.io/google_containers/defaultbackend:1.0 + error_pages: gcr.io/google_containers/defaultbackend:1.4 keepalived: docker.io/osixia/keepalived:1.4.5 dep_check: quay.io/airshipit/kubernetes-entrypoint:v1.0.0 image_repo_sync: docker.io/docker:17.07.0