Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
status-site
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
25
Issues
25
List
Boards
Labels
Service Desk
Milestones
Iterations
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmytro Bogatov
status-site
Commits
3ec3f46c
Verified
Commit
3ec3f46c
authored
Oct 16, 2018
by
Dmytro Bogatov
💕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix.
parent
42498b72
Pipeline
#2505
failed with stages
in 11 minutes and 2 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
+5
-3
deployment/sources/service/deployment.yaml
deployment/sources/service/deployment.yaml
+1
-1
deployment/sources/volume-claim.yaml
deployment/sources/volume-claim.yaml
+2
-0
src/daemons/Program.cs
src/daemons/Program.cs
+1
-1
src/web/Startup.cs
src/web/Startup.cs
+1
-1
No files found.
deployment/sources/service/deployment.yaml
View file @
3ec3f46c
...
...
@@ -22,7 +22,7 @@ spec:
imagePullPolicy
:
Always
volumeMounts
:
-
name
:
appsettings
mountPath
:
"
/run/secrets/"
mountPath
:
"
/run/secrets/
settings/
"
env
:
-
name
:
ASPNETCORE_ENVIRONMENT
value
:
"
Production"
...
...
deployment/sources/volume-claim.yaml
View file @
3ec3f46c
...
...
@@ -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
---
src/daemons/Program.cs
View file @
3ec3f46c
...
...
@@ -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
)
...
...
src/web/Startup.cs
View file @
3ec3f46c
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment