From c512315de713b21b427f6df3cb35608332c2ac24 Mon Sep 17 00:00:00 2001 From: Jijie Chen Date: Mon, 6 May 2019 18:21:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BD=BF=E7=94=A8=E6=96=B0?= =?UTF-8?q?=E7=9A=84=E6=97=A5=E5=BF=97=E6=A0=BC=E5=BC=8F=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E6=89=80=E4=BD=BF=E7=94=A8=E7=9A=84=20k8s=20=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- k8s/app/07-config-map.yaml | 22 ++++++++++++++++------ k8s/app/09-replica-set.yaml | 2 +- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/k8s/app/07-config-map.yaml b/k8s/app/07-config-map.yaml index 6e8cc679..74e46e60 100644 --- a/k8s/app/07-config-map.yaml +++ b/k8s/app/07-config-map.yaml @@ -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, diff --git a/k8s/app/09-replica-set.yaml b/k8s/app/09-replica-set.yaml index ff310331..a87f5c17 100644 --- a/k8s/app/09-replica-set.yaml +++ b/k8s/app/09-replica-set.yaml @@ -29,7 +29,7 @@ spec: fsGroup: 5000 containers: - name: dotnetclub - image: jijiechen/dotnetclub:201905050616 + image: jijiechen/dotnetclub:201905060640 ports: - name: http containerPort: 5000