Browse Source

updated configmap

ipaddr
Başak ERDEM 5 years ago
parent
commit
c2cb1be9b2
  1. 4
      etc/k8s/eshoponabp/charts/public-webgateway/templates/public-webgateway-configmap.yaml
  2. 7
      etc/k8s/eshoponabp/charts/public-webgateway/templates/public-webgateway.yaml
  3. 2
      gateways/web-public/src/EShopOnAbp.WebPublicGateway/Program.cs

4
etc/k8s/eshoponabp/charts/public-webgateway/templates/public-webgateway-configmap.yaml

@ -1,9 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
labels:
name: {{ .Release.Name }}-{{ .Chart.Name }}
name: {{ .Release.Name }}-{{ .Chart.Name }}
name: {{ .Release.Name }}-{{ .Chart.Name }}-configmap
data:
appsettings.json: |-
{

7
etc/k8s/eshoponabp/charts/public-webgateway/templates/public-webgateway.yaml

@ -20,5 +20,12 @@ spec:
containerPort: 80
- name: https
containerPort: 443
volumeMounts:
- name: config-volume
mountPath: /app/config
env:
{{ include "eshoponabp.global.env" . | indent 8 }}
volumes:
- name: config-volume
configMap:
name: {{ .Release.Name }}-{{ .Chart.Name }}-configmap

2
gateways/web-public/src/EShopOnAbp.WebPublicGateway/Program.cs

@ -37,7 +37,7 @@ namespace EShopOnAbp.WebPublicGateway
Host.CreateDefaultBuilder(args)
.ConfigureAppConfiguration(build =>
{
build.AddJsonFile("appsettings.secrets.json", optional: true);
build.AddJsonFile("appsettings.secrets.json", optional: true, reloadOnChange:true);
})
.ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup<Startup>(); })
.UseAutofac()

Loading…
Cancel
Save