helm/siyuan-note/deployment.yaml

34 lines
696 B
YAML
Raw Permalink Normal View History

2023-09-06 04:41:17 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: siyuan-note
spec:
selector:
matchLabels:
app: siyuan-note
template:
metadata:
labels:
app: siyuan-note
spec:
volumes:
- name: data
persistentVolumeClaim:
claimName: siyuan-note
containers:
- name: siyuan-note
image: siyuan-note
resources:
limits:
memory: "256Mi"
cpu: "200m"
ports:
- containerPort: 6806
name: web
args:
- --workspace=/siyuan/workspace
- --lang=zh_CN
volumeMounts:
- mountPath: /siyuan/workspace
name: data