diff --git a/etc/k8s/eshoponabp/charts/gateway-web-public/templates/gateway-web-public-configmap.yaml b/etc/k8s/eshoponabp/charts/gateway-web-public/templates/gateway-web-public-configmap.yaml index 809ea92d..27301408 100644 --- a/etc/k8s/eshoponabp/charts/gateway-web-public/templates/gateway-web-public-configmap.yaml +++ b/etc/k8s/eshoponabp/charts/gateway-web-public/templates/gateway-web-public-configmap.yaml @@ -3,8 +3,11 @@ kind: ConfigMap metadata: name: {{ .Release.Name }}-{{ .Chart.Name }}-configmap data: - appsettings.json: |- + ocelot.json: |- { + "GlobalConfiguration": { + "BaseUrl": "{{ .Values.config.globalConfigurationBaseUrl }}" + }, "Routes": [ { "ServiceKey": "Identity Service", diff --git a/etc/k8s/eshoponabp/charts/gateway-web-public/templates/gateway-web-public-deployment.yaml b/etc/k8s/eshoponabp/charts/gateway-web-public/templates/gateway-web-public-deployment.yaml index 910a6606..59db1066 100644 --- a/etc/k8s/eshoponabp/charts/gateway-web-public/templates/gateway-web-public-deployment.yaml +++ b/etc/k8s/eshoponabp/charts/gateway-web-public/templates/gateway-web-public-deployment.yaml @@ -22,8 +22,8 @@ spec: containerPort: 443 volumeMounts: - name: config-volume - mountPath: /app/appsettings.json - subPath: appsettings.json + mountPath: /app/ocelot.json + subPath: ocelot.json env: - name: App__SelfUrl value: "{{ .Values.config.selfUrl }}" diff --git a/etc/k8s/eshoponabp/charts/gateway-web/templates/gateway-web-configmap.yaml b/etc/k8s/eshoponabp/charts/gateway-web/templates/gateway-web-configmap.yaml index 22d1155e..ec349914 100644 --- a/etc/k8s/eshoponabp/charts/gateway-web/templates/gateway-web-configmap.yaml +++ b/etc/k8s/eshoponabp/charts/gateway-web/templates/gateway-web-configmap.yaml @@ -3,8 +3,11 @@ kind: ConfigMap metadata: name: {{ .Release.Name }}-{{ .Chart.Name }}-configmap data: - appsettings.json: |- + ocelot.json: |- { + "GlobalConfiguration": { + "BaseUrl": "{{ .Values.config.globalConfigurationBaseUrl }}" + }, "Routes": [ { "ServiceKey": "Identity Service", diff --git a/etc/k8s/eshoponabp/charts/gateway-web/templates/gateway-web-deployment.yaml b/etc/k8s/eshoponabp/charts/gateway-web/templates/gateway-web-deployment.yaml index 25b3f694..cf3a8a1b 100644 --- a/etc/k8s/eshoponabp/charts/gateway-web/templates/gateway-web-deployment.yaml +++ b/etc/k8s/eshoponabp/charts/gateway-web/templates/gateway-web-deployment.yaml @@ -22,8 +22,8 @@ spec: containerPort: 443 volumeMounts: - name: config-volume - mountPath: /app/appsettings.json - subPath: appsettings.json + mountPath: /app/ocelot.json + subPath: ocelot.json env: - name: App__SelfUrl value: "{{ .Values.config.selfUrl }}"