diff --git a/deployment/sources/service/deployment.yaml b/deployment/sources/service/deployment.yaml index c339ccf6b561e3cf28300a4d2e61e0d22a086062..b3a9446ed67fc5f389189d78f3d1b14779e4bdf6 100644 --- a/deployment/sources/service/deployment.yaml +++ b/deployment/sources/service/deployment.yaml @@ -22,7 +22,7 @@ spec: imagePullPolicy: Always volumeMounts: - name: appsettings - mountPath: "/run/secrets/" + mountPath: "/run/secrets/settings/" env: - name: ASPNETCORE_ENVIRONMENT value: "Production" diff --git a/deployment/sources/volume-claim.yaml b/deployment/sources/volume-claim.yaml index 16d1bac970e68317f03d49c83c8aa9ac3aa88c03..4bb73371af6984ab0fe67d724e2f81607911e2eb 100644 --- a/deployment/sources/volume-claim.yaml +++ b/deployment/sources/volume-claim.yaml @@ -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 --- diff --git a/src/daemons/Program.cs b/src/daemons/Program.cs index 00a8ee0a1c952b863142a925044c58519bedb339..05beeae36c499196224a7519a1ca5ef301a3b9fc 100755 --- a/src/daemons/Program.cs +++ b/src/daemons/Program.cs @@ -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) diff --git a/src/web/Startup.cs b/src/web/Startup.cs index b1035ace9b28c5cec664c21268da78ba07521dc2..edbb450f58d3809c7fe419799914f8171b144e7b 100755 --- a/src/web/Startup.cs +++ b/src/web/Startup.cs @@ -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)