From 2513bf9ae7655e3d056d6b15faa757bfc2c5c16b Mon Sep 17 00:00:00 2001 From: fumingwei Date: Fri, 9 Dec 2022 16:51:30 +0800 Subject: [PATCH] =?UTF-8?q?feature:=E6=96=B0=E5=A2=9ETSG-X=200906=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E4=B8=8B=E5=AE=9A=E6=97=B6=E6=B8=85=E9=99=A4minidump?= =?UTF-8?q?=E7=9A=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../files/helm/templates/traffic-engine.yaml | 12 ++++++++++++ .../files/tmpfiles.d/traffic-engine.conf | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ansible/roles/traffic-engine/files/helm/templates/traffic-engine.yaml b/ansible/roles/traffic-engine/files/helm/templates/traffic-engine.yaml index 18118601..8ddcc513 100644 --- a/ansible/roles/traffic-engine/files/helm/templates/traffic-engine.yaml +++ b/ansible/roles/traffic-engine/files/helm/templates/traffic-engine.yaml @@ -247,6 +247,18 @@ spec: - name: MERGER_PORT value: "{{ .Values.mergeExporter.mergePort }}" + - name: minidump-hook + image: "{{ .Values.image.tsgInit.repository }}:{{ .Values.image.tsgInit.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ .Values.image.tsgInit.pullPolicy }} + command: ["/bin/sh", "-c", "while true; do touch /run/sapp/crashreport/.minidump; touch /run/tfe/crashreport/.minidump; touch /run/certstore/crashreport/.minidump; sleep 600; done"] + volumeMounts: + - name: firewall-minidump + mountPath: /run/sapp/crashreport + - name: proxy-minidump + mountPath: /run/tfe/crashreport + - name: certstore-minidump + mountPath: /run/certstore/crashreport + initContainers: - name: tsg-init image: "{{ .Values.image.tsgInit.repository }}:{{ .Values.image.tsgInit.tag | default .Chart.AppVersion }}" diff --git a/ansible/roles/traffic-engine/files/tmpfiles.d/traffic-engine.conf b/ansible/roles/traffic-engine/files/tmpfiles.d/traffic-engine.conf index 3ae306a6..589289ec 100644 --- a/ansible/roles/traffic-engine/files/tmpfiles.d/traffic-engine.conf +++ b/ansible/roles/traffic-engine/files/tmpfiles.d/traffic-engine.conf @@ -1,2 +1,3 @@ #Type Path Mode User Group Age Argument -d /var/log/traffic-engine/ 0755 - - 2d - \ No newline at end of file +d /var/log/traffic-engine/ 0755 - - 2d - +d /var/crashreport/traffic-engine/ 0755 - - 30d - \ No newline at end of file