From 15d819f9329190864d00690b915868961b3aa6bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Go=CC=88khan=20S=CC=A7engu=CC=88n?= Date: Thu, 4 Nov 2021 11:51:40 +0300 Subject: [PATCH] Fix issue with passing appsettings from config map --- .../templates/gateway-public-web.yaml | 3 ++- .../eshoponabp/charts/gateway-public-web/values.yaml | 12 ------------ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/etc/k8s/eshoponabp/charts/gateway-public-web/templates/gateway-public-web.yaml b/etc/k8s/eshoponabp/charts/gateway-public-web/templates/gateway-public-web.yaml index 9b465971..7a67f44d 100644 --- a/etc/k8s/eshoponabp/charts/gateway-public-web/templates/gateway-public-web.yaml +++ b/etc/k8s/eshoponabp/charts/gateway-public-web/templates/gateway-public-web.yaml @@ -22,7 +22,8 @@ spec: containerPort: 443 volumeMounts: - name: config-volume - mountPath: /app/config + mountPath: /app/appsettings.json + subPath: appsettings.json env: {{ include "eshoponabp.global.env" . | indent 8 }} {{- if .Values.env }} diff --git a/etc/k8s/eshoponabp/charts/gateway-public-web/values.yaml b/etc/k8s/eshoponabp/charts/gateway-public-web/values.yaml index 20d3d7bb..9ebf0117 100644 --- a/etc/k8s/eshoponabp/charts/gateway-public-web/values.yaml +++ b/etc/k8s/eshoponabp/charts/gateway-public-web/values.yaml @@ -3,16 +3,4 @@ value: "https://eshop-st-gateway-public-web" - name: "GlobalConfiguration__BaseUrl" value: "http://eshop-st-gateway-public-web" - - name: "Routes__0__DownstreamScheme" - value: "http" - - name: "Routes__0__DownstreamHostAndPorts__0__Host" - value: "eshop-st-identity" - - name: "Routes__0__DownstreamHostAndPorts__0__Port" - value: "80" - - name: "Routes__1__DownstreamScheme" - value: "http" - - name: "Routes__1__DownstreamHostAndPorts__0__Host" - value: "eshop-st-administration" - - name: "Routes__1__DownstreamHostAndPorts__0__Port" - value: "80" \ No newline at end of file