commit 91cc543fe4cb1c26106728bbeb97e9a704d93934
| author | 斟酌 鵬兄 <tgckpg@gmail.com> |
| date | 2023-01-30T20:36:58Z |
| subject | Added emptyDir for caching settings |
commit 91cc543fe4cb1c26106728bbeb97e9a704d93934
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date: 2023-01-30T20:36:58Z
Added emptyDir for caching settings
---
k8s/deployments.yaml | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/k8s/deployments.yaml b/k8s/deployments.yaml
index 1ff8d63..bb82d1d 100644
--- a/k8s/deployments.yaml
+++ b/k8s/deployments.yaml
@@ -19,8 +19,18 @@ spec:
- name: app
image: registry.k8s.astropenguin.net/golifehk:IMAGE_TAG
env:
+ - name: GOLIFEHK_WORKDIR
+ value: "/workdir"
- name: TELEGRAM_API_TOKEN
valueFrom:
secretKeyRef:
name: golifehk-conf
key: TELEGRAM_API_TOKEN
+ volumes:
+ volumeMounts:
+ - mountPath: /workdir
+ name: workdir
+ volumes:
+ - name: workdir
+ emptyDir:
+ sizeLimit: 10Mi