Skip to content

Commit

Permalink
更新使用新的日志格式时,所使用的 k8s 配置
Browse files Browse the repository at this point in the history
  • Loading branch information
Jijie Chen committed May 6, 2019
1 parent 8cca108 commit c512315
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
22 changes: 16 additions & 6 deletions k8s/app/07-config-map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,23 @@ data:
{
"sqliteConnectionString": "Data Source=/club-data/dotnetclub.db",
"Logging": {
"LogLevel": {
"Discussion": "Information",
"Default": "Warning"
"File": {
"PathFormat": "logs/log-{Date}.log",
"FileSizeLimitBytes": 20971520,
"OutputTemplate": "[{Level:u3}] {Timestamp:o} {SourceContext} {TraceId}{NewLine} {Message} {NewLine}{Exception}",
"LogLevel": {
"Discussion": "Information",
"Default": "Warning"
}
},
"PathFormat": "logs/log-{Date}.log",
"FileSizeLimitBytes": 20971520,
"OutputTemplate": "[{Level:u3}] {Timestamp:o} {SourceContext} {TraceId}{NewLine} {Message} {NewLine}{Exception}"
"Console": {
"Json": true,
"ElasticSearchJson": true,
"LogLevel": {
"Discussion": "Information",
"Default": "Warning"
}
}
},
"DataProtectionOptions": {
"DisableAutomaticKeyGeneration" : true,
Expand Down
2 changes: 1 addition & 1 deletion k8s/app/09-replica-set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
fsGroup: 5000
containers:
- name: dotnetclub
image: jijiechen/dotnetclub:201905050616
image: jijiechen/dotnetclub:201905060640
ports:
- name: http
containerPort: 5000
Expand Down

0 comments on commit c512315

Please sign in to comment.