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 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
labels: name: {{ .Release.Name }}-{{ .Chart.Name }}-configmap
name: {{ .Release.Name }}-{{ .Chart.Name }}
name: {{ .Release.Name }}-{{ .Chart.Name }}
data: data:
appsettings.json: |- appsettings.json: |-
{ {

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

@ -20,5 +20,12 @@ spec:
containerPort: 80 containerPort: 80
- name: https - name: https
containerPort: 443 containerPort: 443
volumeMounts:
- name: config-volume
mountPath: /app/config
env: env:
{{ include "eshoponabp.global.env" . | indent 8 }} {{ 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) Host.CreateDefaultBuilder(args)
.ConfigureAppConfiguration(build => .ConfigureAppConfiguration(build =>
{ {
build.AddJsonFile("appsettings.secrets.json", optional: true); build.AddJsonFile("appsettings.secrets.json", optional: true, reloadOnChange:true);
}) })
.ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup<Startup>(); }) .ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup<Startup>(); })
.UseAutofac() .UseAutofac()

Loading…
Cancel
Save