From 4b262c26a11dc06c927c4f7bf418d57478bfbfe1 Mon Sep 17 00:00:00 2001 From: zhangdongdong Date: Fri, 25 Feb 2022 17:44:34 +0800 Subject: [PATCH] Update volumes about log --- k8s-deploy-template.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/k8s-deploy-template.yaml b/k8s-deploy-template.yaml index ff86d9a..0498814 100644 --- a/k8s-deploy-template.yaml +++ b/k8s-deploy-template.yaml @@ -21,6 +21,9 @@ spec: imagePullPolicy: Always ports: - containerPort: ${PORT} + volumeMounts: + - name: logs-volume + mountPath: /data/logs livenessProbe: httpGet: scheme: HTTP @@ -37,3 +40,7 @@ spec: periodSeconds: 10 imagePullSecrets: - name: kp-schbrain + volumes: + - name: logs-volume + hostPath: + path: /data/logs -- GitLab