Verified Commit 3ec3f46c authored by Dmytro Bogatov's avatar Dmytro Bogatov 💕

Fix.

parent 42498b72
Pipeline #2505 failed with stages
in 11 minutes and 2 seconds
......@@ -22,7 +22,7 @@ spec:
imagePullPolicy: Always
volumeMounts:
- name: appsettings
mountPath: "/run/secrets/"
mountPath: "/run/secrets/settings/"
env:
- name: ASPNETCORE_ENVIRONMENT
value: "Production"
......
......@@ -2,10 +2,12 @@ apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: database-pv-claim
namespace: status-site
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
storageClassName: do-block-storage
---
......@@ -40,7 +40,7 @@ namespace StatusMonitor.Daemons
var builder = new ConfigurationBuilder()
.AddYamlFile("appsettings.yml", optional: false) // read defaults first
.AddYamlFile(
$"{(env.IsProduction() ? "/run/secrets/" : "")}appsettings.{env.EnvironmentName.ToLower()}.yml",
$"{(env.IsProduction() ? "/run/secrets/settings/" : "")}appsettings.{env.EnvironmentName.ToLower()}.yml",
optional: env.IsStaging()
) // override with specific settings file
.AddJsonFile("version.json", optional: true)
......
......@@ -38,7 +38,7 @@ namespace StatusMonitor.Web
var builder = new ConfigurationBuilder()
.AddYamlFile("appsettings.yml", optional: false) // read defaults first
.AddYamlFile(
$"{(env.IsProduction() ? "/run/secrets/" : "")}appsettings.{env.EnvironmentName.ToLower()}.yml",
$"{(env.IsProduction() ? "/run/secrets/settings/" : "")}appsettings.{env.EnvironmentName.ToLower()}.yml",
optional: env.IsStaging()
) // override with specific settings file
.AddJsonFile("version.json", optional: true)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment